From 70d9b193acd71b5a2033c6017805dce752c2b348 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 20 Mar 2025 20:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A7=81=E8=81=8A=E4=B8=8B=20get=5Fgroup=20=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/platform/sources/gewechat/gewechat_event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/platform/sources/gewechat/gewechat_event.py b/astrbot/core/platform/sources/gewechat/gewechat_event.py index 535922303..3aca64bab 100644 --- a/astrbot/core/platform/sources/gewechat/gewechat_event.py +++ b/astrbot/core/platform/sources/gewechat/gewechat_event.py @@ -127,9 +127,9 @@ class GewechatPlatformEvent(AstrMessageEvent): async def get_group(self, group_id=None, **kwargs): # 确定有效的 group_id if group_id is None: - group_id = self.message_obj.group_id + group_id = self.get_group_id() - if group_id is None: + if not group_id: return None res = await self.client.get_group(group_id)