feat(huya): 多选登录改单线程队列并拆分路由与工作台

默认同时只登一个号,失败两次跳下一个,号间留间隔,结束后可一键重试失败账号。
顺带拆分虎牙路由与斗鱼工作台页面,并补齐 raw_cookie 重建入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-10 11:31:50 +08:00
co-authored by Cursor
parent 8dea9e3244
commit e81119117f
27 changed files with 6405 additions and 5409 deletions
+3
View File
@@ -43,6 +43,8 @@ class HuyaBatchRunner(
if not task or not account:
return
self._wss_sessions.account_id = account.id
if self._stop.is_set():
self._mark_task(worker_db, task, "stopped", "任务已停止")
return
@@ -127,6 +129,7 @@ class HuyaBatchRunner(
self._mark_task(worker_db, task, "error", f"执行异常: {exc}")
self._push_log("error", f"[{current}] {name} 执行异常: {exc}")
finally:
self._wss_sessions.account_id = None
self._close_wss_sessions()
worker_db.close()