diff --git a/app/user/cmd/api/internal/logic/agent/agentwithdrawallogic.go b/app/user/cmd/api/internal/logic/agent/agentwithdrawallogic.go index 0036ed6..787e99c 100644 --- a/app/user/cmd/api/internal/logic/agent/agentwithdrawallogic.go +++ b/app/user/cmd/api/internal/logic/agent/agentwithdrawallogic.go @@ -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失败") }