优化虎牙任务操作台

This commit is contained in:
yml2213
2026-07-06 13:50:20 +08:00
parent 85dc8da3b3
commit f9a321512f
2 changed files with 729 additions and 327 deletions
+2 -2
View File
@@ -327,8 +327,8 @@ def create_planned_tasks(
batch_id = uuid.uuid4().hex[:12]
payload = payload or {}
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:
# 全局快照、单笔兑换和单笔支付二维码使用一个选中的 CK 即可。
if task_type in {"refresh_goods", "refresh_recharge_goods", "create_recharge_order"} and accounts:
# 全局快照和单笔支付二维码使用一个选中的 CK 即可;兑换商品需要保留多账号批量任务
accounts = accounts[:1]
for account in accounts:
db.add(HuyaTask(
File diff suppressed because it is too large Load Diff