perf(douyu): 优化慢查询并修复供应商充值收口

This commit is contained in:
yml
2026-11-21 11:20:58 +08:00
parent 3987464035
commit 9c90a452c5
14 changed files with 435 additions and 69 deletions
+16 -1
View File
@@ -63,7 +63,22 @@ class DouyuBatchRunner(
)
return
if task.task_type == "create_gold_qr":
self._poll_create_gold_qr_once(db, task, account, cookie, config)
if str(result.get("recharge_channel") or "") == "supplier_api":
amount = int(
result.get("buy_num")
or self._task_payload(task).get("amount")
or self._task_payload(task).get("gold_amount")
or 1
)
self._poll_create_gold_supplier_once(
db,
task,
account,
cookie,
amount=amount,
)
else:
self._poll_create_gold_qr_once(db, task, account, cookie, config)
elif task.task_type == "create_elite_qr":
self._poll_create_elite_qr_once(db, task, account, cookie, config)
elif task.task_type == "create_esports_qr":