fix
This commit is contained in:
parent
20c96d1a40
commit
d4f6b3a030
@ -74,8 +74,7 @@ func (l *AgentWithdrawalLogic) AgentWithdrawal(req *types.WithdrawalReq) (*types
|
||||
}
|
||||
|
||||
// 校验可提现金额
|
||||
withdrawableAmount := agentWallet.Balance - agentWallet.FrozenBalance
|
||||
if req.Amount > withdrawableAmount {
|
||||
if req.Amount > agentWallet.Balance {
|
||||
return errors.Wrapf(xerr.NewErrMsg("您可提现的余额不足"), "获取用户ID失败")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user