实现虎牙刷新商品列表
This commit is contained in:
@@ -172,6 +172,9 @@ 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 == "refresh_goods" and accounts:
|
||||
# 商品列表是全局快照,使用一个可用 CK 刷新即可。
|
||||
accounts = accounts[:1]
|
||||
for account in accounts:
|
||||
db.add(HuyaTask(
|
||||
batch_id=batch_id,
|
||||
|
||||
Reference in New Issue
Block a user