From ff721816498d934d10bcb617c8c604573685a77c Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Tue, 23 Sep 2025 21:28:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(chat):=20=E6=9B=B4=E6=96=B0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=BE=A4=E8=81=8A=E6=B6=88=E6=81=AF=E7=9A=84=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=BB=A5=E9=80=82=E9=85=8D=E6=96=B0=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/message_receive/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/message_receive/bot.py b/src/chat/message_receive/bot.py index 4e9c10e2b..9d73eb3c0 100644 --- a/src/chat/message_receive/bot.py +++ b/src/chat/message_receive/bot.py @@ -190,7 +190,7 @@ class ChatBot: try: # 检查聊天类型限制 if not plus_command_instance.is_chat_type_allowed(): - is_group = hasattr(message, "is_group_message") and message.is_group_message + is_group = message.message_info.group_info logger.info( f"PlusCommand {plus_command_class.__name__} 不支持当前聊天类型: {'群聊' if is_group else '私聊'}" )