From 420033c61fec4ef6f9b35e44329f9641fdad4574 Mon Sep 17 00:00:00 2001 From: Jeason <1710884619@qq.com> Date: Thu, 9 Apr 2026 08:47:15 +0800 Subject: [PATCH] =?UTF-8?q?Cookie=E5=A4=B1=E6=95=88=E6=97=B6=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E8=B4=A6=E5=8F=B7=E7=8A=B6=E6=80=81+=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=98=8E=E7=A1=AE=E6=8F=90=E7=A4=BA=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=89=AB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/task_scheduler/app/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/task_scheduler/app/main.py b/backend/task_scheduler/app/main.py index 8176c14..39f2746 100644 --- a/backend/task_scheduler/app/main.py +++ b/backend/task_scheduler/app/main.py @@ -282,7 +282,7 @@ def _push_signin_result(account_id: str, result: dict, elapsed: float): elif status == "completed" and result.get("signed", 0) == 0 and result.get("total", 0) == 0: msg = result.get("message", "") if "no topics" in msg: - lines = [f"⚠️ {remark} 签到失败: 获取超话列表失败(可能被风控或 Cookie 失效)"] + lines = [f"⚠️ {remark} Cookie 已失效,请重新扫码添加"] elif "no selected" in msg: lines = [f"⚠️ {remark} 签到跳过: 没有选中的超话"] else: @@ -392,9 +392,10 @@ async def _async_do_signin(account_id: str, cron_expr: str = ""): result = await session.execute(select(Account).where(Account.id == acc_id)) acc = result.scalar_one_or_none() if acc: + acc.status = "invalid_cookie" acc.last_checked_at = datetime.now() await session.commit() - return {"status": "completed", "signed": 0, "message": "no topics"} + return {"status": "completed", "signed": 0, "message": "no topics - cookie可能已失效"} # 如果用户选择了特定超话,只签选中的 if acc_selected_topics and isinstance(acc_selected_topics, list):