From 8579b7ec27a8dd86972695dd86399bf1efa20017 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 7 May 2026 12:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96864=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E4=B8=89=E6=80=81=E5=B1=95=E7=A4=BA=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=80=82=E9=85=8D=E8=B7=AF=E7=BA=BF=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/robot.py | 8 ++ admin/dashboard/templates/index.html | 44 ++++++++- docs/wechat_ipad多版本Server适配路线图.md | 3 + robot.py | 41 ++++++++ wechat_ipad/providers/server_864/runtime.py | 101 +++++++++++++++++++- 5 files changed, 194 insertions(+), 3 deletions(-) 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 @@