优化864登录三态展示并更新适配路线文档

This commit is contained in:
liuwei
2026-05-07 12:28:59 +08:00
parent 539bebd58b
commit 8579b7ec27
5 changed files with 194 additions and 3 deletions

View File

@@ -20,6 +20,10 @@ def _serialize_login_qr_state(server) -> dict:
"logged_in": False,
"active": False,
"status": "unavailable",
"provider_name": "",
"provider_stage": "status_unavailable",
"connection_ready": False,
"login_required": False,
"status_text": "机器人运行态暂不可用",
"current": {},
"history": [],
@@ -31,6 +35,10 @@ def _serialize_login_qr_state(server) -> dict:
"logged_in": bool(state.get("logged_in", False)),
"active": bool(state.get("active", False)),
"status": str(state.get("status", "idle") or "idle"),
"provider_name": str(state.get("provider_name", "") or ""),
"provider_stage": str(state.get("provider_stage", "bootstrap") or "bootstrap"),
"connection_ready": bool(state.get("connection_ready", False)),
"login_required": bool(state.get("login_required", False)),
"status_text": str(state.get("status_text", "尚未进入扫码登录流程") or "尚未进入扫码登录流程"),
"runtime_running": bool(state.get("runtime_running", False)),
"wxid": str(state.get("wxid", "") or ""),