优化无效代码

This commit is contained in:
liuwei
2025-05-28 17:01:17 +08:00
parent 04df61694b
commit 3697c9160e
2 changed files with 0 additions and 18 deletions

View File

@@ -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"

View File

@@ -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无法正常工作")