perf(douyu): 优化慢查询并修复供应商充值收口
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user