优化864登录三态展示并更新适配路线文档
This commit is contained in:
@@ -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 ""),
|
||||
|
||||
Reference in New Issue
Block a user