|
@@ -748,8 +748,8 @@ class AgentCustomerView(View):
|
|
|
# 可提现余额 = 总余额 - 冻结金额
|
|
|
available_balance = total_profit - frozen_amount
|
|
|
|
|
|
- if amount < available_balance:
|
|
|
- return response.json(173, '余额不足,无法提现')
|
|
|
+ if amount > available_balance:
|
|
|
+ return response.json(173, f'余额不足,无法提现')
|
|
|
|
|
|
# 提交提现申请
|
|
|
acc = AgentCustomerCard.objects.filter(ac_id=ac_id).first()
|