fix: 简化提现收款对账,避免永远卡在收款处理中

- 同一审核单只保留最新一条进行中打款,多次点击不再堆叠阻塞
- 有 package 时查单失败也直接调起微信确认
- 无 package 超过20秒即作废允许重试;转账/网络失败返回明确错误而非 code12

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-10 21:59:28 +08:00
parent 921941a36d
commit 8bc0afb7f4
3 changed files with 73 additions and 72 deletions

View File

@@ -1330,7 +1330,7 @@ class TixianQueRenAutoView(APIView):
if wx_data.get('_not_found'):
age = timezone.now() - auto_record.CreateTime
if auto_record.zhuangtai == 0 and age >= timedelta(minutes=2):
if auto_record.zhuangtai == 0 and age >= timedelta(seconds=20):
_mark_transfer_attempt_failed(
auto_record, '微信未找到该打款单', close_audit=False,
)