From 0cc104ef115601af485287a872594d5cadbaca75 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 22 Aug 2023 13:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/wechat/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/modules/wechat/__init__.py b/app/modules/wechat/__init__.py index dfaa14df..4fcd7d5f 100644 --- a/app/modules/wechat/__init__.py +++ b/app/modules/wechat/__init__.py @@ -100,8 +100,7 @@ class WechatModule(_ModuleBase): if wechat_admins and not any( user_id == admin_user for admin_user in wechat_admins): self.wechat.send_msg(title="用户无权限执行菜单命令", userid=user_id) - return CommingMessage(channel=MessageChannel.Wechat, - userid=user_id, username=user_id, text="") + return None elif msg_type == "text": # 文本消息 content = DomUtils.tag_value(root_node, "Content", default="")