优化虎牙任务操作台
This commit is contained in:
@@ -327,8 +327,8 @@ def create_planned_tasks(
|
|||||||
batch_id = uuid.uuid4().hex[:12]
|
batch_id = uuid.uuid4().hex[:12]
|
||||||
payload = payload or {}
|
payload = payload or {}
|
||||||
accounts = db.query(HuyaAccount).filter(HuyaAccount.id.in_(account_ids)).all()
|
accounts = db.query(HuyaAccount).filter(HuyaAccount.id.in_(account_ids)).all()
|
||||||
if task_type in {"refresh_goods", "refresh_recharge_goods", "exchange_goods", "create_recharge_order"} and accounts:
|
if task_type in {"refresh_goods", "refresh_recharge_goods", "create_recharge_order"} and accounts:
|
||||||
# 全局快照、单笔兑换和单笔支付二维码都使用一个选中的 CK 即可。
|
# 全局快照和单笔支付二维码使用一个选中的 CK 即可;兑换商品需要保留多账号批量任务。
|
||||||
accounts = accounts[:1]
|
accounts = accounts[:1]
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
db.add(HuyaTask(
|
db.add(HuyaTask(
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user