fix: keep one douyu cookie per account

This commit is contained in:
yml2213
2026-08-08 21:26:32 +08:00
parent b39780f26d
commit 948e7d7246
3 changed files with 115 additions and 15 deletions
+4
View File
@@ -49,7 +49,11 @@ async def create_batch(
# 权限过滤账号
valid_ids = []
seen_ids = set()
for aid in req.account_ids:
if aid in seen_ids:
continue
seen_ids.add(aid)
acc = db.query(Account).filter(Account.id == aid).first()
if not acc:
continue