修复0超话签到推送消息显示为成功的问题
This commit is contained in:
@@ -279,6 +279,14 @@ def _push_signin_result(account_id: str, result: dict, elapsed: float):
|
||||
lines = [f"⏰ {remark} 签到超时 ({elapsed:.1f}s)"]
|
||||
elif status == "error":
|
||||
lines = [f"❌ {remark} 签到异常: {result.get('reason', '未知')}"]
|
||||
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 失效)"]
|
||||
elif "no selected" in msg:
|
||||
lines = [f"⚠️ {remark} 签到跳过: 没有选中的超话"]
|
||||
else:
|
||||
lines = [f"⚠️ {remark} 签到异常: 0 个超话 ({msg})"]
|
||||
else:
|
||||
signed = result.get("signed", 0)
|
||||
already = result.get("already_signed", 0)
|
||||
|
||||
Reference in New Issue
Block a user