确认收款失败后跳过该商户,再点收款可换号。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-14 22:48:00 +08:00
parent 0271eca248
commit 728bac58ee
3 changed files with 35 additions and 6 deletions

View File

@@ -414,6 +414,12 @@ def process_audit_collect(request):
[c.get('MCHID') for c in prefer_cfgs],
)
mch_cfgs = prefer_cfgs
elif failed_mchs and not prefer_cfgs:
# 可用商户都失败过:仍按原序再试一轮(例如限额日切后可能恢复)
logger.warning(
'可用商户均曾失败,按原序再试 shenhe=%s failed=%s',
shenhe_danhao, sorted(failed_mchs),
)
_log_wx_collect(
'开始轮换',
shenhe=shenhe_danhao,