From 3697c9160ef027f9d1c33d541559ab3916405193 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 May 2025 17:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/config.toml | 6 ------ admin/dashboard/server.py | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/admin/dashboard/config.toml b/admin/dashboard/config.toml index bc934fe..85d25b5 100644 --- a/admin/dashboard/config.toml +++ b/admin/dashboard/config.toml @@ -1,4 +1,3 @@ -enable = true [server] host = "0.0.0.0" port = 8888 @@ -6,8 +5,3 @@ port = 8888 [auth] username = "admin" password = "admin123" - -[database] -# 如果为空,则使用主项目的数据库配置 -# 如果设置了值,则使用自己的数据库配置 -auto_start = "True" \ No newline at end of file diff --git a/admin/dashboard/server.py b/admin/dashboard/server.py index 3160d74..c767b88 100644 --- a/admin/dashboard/server.py +++ b/admin/dashboard/server.py @@ -49,18 +49,6 @@ class DashboardServer: self.client: WechatAPIClient = robot_instance.ipad_bot self.robot = robot_instance - # # 设置用户信息 - # self.user_data = { - # # "wx_id": user_data.get("wxid", ""), - # # "nickname": user_data.get("nickName", "未知用户"), - # # "avatar": user_data.get("smallHeadImgUrl", "logo.png"), # 使用小头像URL - # # "mobile": user_data.get("mobile", ""), - # # "home": f"{user_data.get('province', '')}-{user_data.get('city', '')}" # 组合省市信息 - # "wxid": robot_instance.wx_id, - # "nickName": robot_instance.nickname, - # "smallHeadImgUrl": robot_instance.head_image, - # "mobile": robot_instance.phone - # } self.LOG.info("使用Robot实例的对象进行初始化") else: self.LOG.error("未提供Robot实例,Dashboard无法正常工作")