fix: health_check 识别微信登录失效(loginCheck错误), 防止误报已登录

This commit is contained in:
2026-08-08 01:03:13 +08:00
parent a8b46178e3
commit 8feed0092b
+4 -2
View File
@@ -202,10 +202,12 @@ def main():
login_ok = True
if port_ok and svc.get("login_check") and svc.get("docker_name"):
qr_showing = docker_log_check(svc["docker_name"], "扫码", minutes=10)
if qr_showing:
# 登录失效信号: loginCheck 错误 或 发消息时登录校验失败
login_err = docker_log_check(svc["docker_name"], "loginCheck", minutes=10)
if qr_showing or login_err:
login_ok = False
entry["login_ok"] = False
entry["login_detail"] = "not_logged_in"
entry["login_detail"] = "not_logged_in" if qr_showing else "session_expired"
else:
entry["login_ok"] = True