|
@@ -662,11 +662,12 @@ class AgentCustomerView(View):
|
|
|
for withdraw in current_page:
|
|
|
agent_customer_card = AgentCustomerCard.objects.filter(ac_id=ac_id).first()
|
|
|
card_no = agent_customer_card.card_no
|
|
|
+ masked_card_no = card_no[:4] + '*' * (len(card_no) - 8) + card_no[-4:]
|
|
|
withdraw_list.append({
|
|
|
'id': withdraw.id,
|
|
|
'amount': withdraw.amount,
|
|
|
'created_time': withdraw.created_time,
|
|
|
- 'card_no': card_no,
|
|
|
+ 'card_no': masked_card_no,
|
|
|
'status': withdraw.status,
|
|
|
'remark': withdraw.remark,
|
|
|
'arrival_time': withdraw.arrival_time
|
|
@@ -855,6 +856,8 @@ class AgentCustomerView(View):
|
|
|
# 可提现余额 = 总余额 - 冻结金额
|
|
|
available_balance = total_profit - frozen_amount
|
|
|
|
|
|
+ if amount < Decimal('1000.00'):
|
|
|
+ return response.json(444, f'每次提现最少为1000元')
|
|
|
if amount > available_balance:
|
|
|
return response.json(173, f'余额不足,无法提现')
|
|
|
|