function invest (uint amount) public {
uint _hjlAmount = amount.mul(hjlProportion).div(100);
uint _hjAmount = amount.mul(usdtProportion).div(100);
IERC20(HJ).transferFrom(msg.sender, investDataAddress, _hjAmount);
IERC20(HJL).transferFrom(msg.sender, investDataAddress, _hjlAmount);
}
}
这样老是失败,但是转一个是可以的