diff --git a/admin/dashboard/blueprints/robot.py b/admin/dashboard/blueprints/robot.py index 93a7131..cf46766 100644 --- a/admin/dashboard/blueprints/robot.py +++ b/admin/dashboard/blueprints/robot.py @@ -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 ""), diff --git a/admin/dashboard/templates/index.html b/admin/dashboard/templates/index.html index 2315d89..6bb8987 100644 --- a/admin/dashboard/templates/index.html +++ b/admin/dashboard/templates/index.html @@ -26,7 +26,7 @@