From d4f6b3a03021fcb519aba578408a2449a05c05ca Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Tue, 6 May 2025 22:34:31 +0800 Subject: [PATCH] fix --- app/user/cmd/api/internal/logic/agent/agentwithdrawallogic.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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失败") }