From bbf1ec4c50b16452db98f1d0f6259e8d0eef5a95 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 6 Mar 2024 17:19:32 +0800 Subject: [PATCH] fix bug --- app/modules/vocechat/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/vocechat/__init__.py b/app/modules/vocechat/__init__.py index 58f2f95e..e0b7ccfb 100644 --- a/app/modules/vocechat/__init__.py +++ b/app/modules/vocechat/__init__.py @@ -66,11 +66,12 @@ class VoceChatModule(_ModuleBase): if msg_type != "normal": # 非新消息 return None + logger.debug(f"收到VoceChat请求:{msg_body}") # 文本内容 content = msg_body.get("detail", {}).get("content") # 用户ID gid = msg_body.get("target", {}).get("gid") - if gid and gid == settings.VOCECHAT_CHANNEL_ID: + if gid and str(gid) == str(settings.VOCECHAT_CHANNEL_ID): # 来自监听频道的消息 userid = f"GID#{gid}" else: