From c224a7c07bbe26652b0edd95a44f855ca79970f0 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 5 Sep 2023 11:52:46 +0800 Subject: [PATCH] fix bug --- app/modules/wechat/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/wechat/__init__.py b/app/modules/wechat/__init__.py index 4def27e4..555768a2 100644 --- a/app/modules/wechat/__init__.py +++ b/app/modules/wechat/__init__.py @@ -102,8 +102,8 @@ class WechatModule(_ModuleBase): user_id == admin_user for admin_user in wechat_admins): self.wechat.send_msg(title="用户无权限执行菜单命令", userid=user_id) return None - # 根据Event执行命令 - content = event + # 根据EventKey执行命令 + content = DomUtils.tag_value(root_node, "EventKey") logger.info(f"收到微信事件:userid={user_id}, event={content}") elif msg_type == "text": # 文本消息