From 998ad7623c39cf8e9587c6433ef24c469637f850 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Wed, 26 Feb 2025 15:53:26 +0800 Subject: [PATCH] perf(gewechat): simplify --- pkg/platform/sources/gewechat.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/platform/sources/gewechat.py b/pkg/platform/sources/gewechat.py index 71ea7066..3f53f802 100644 --- a/pkg/platform/sources/gewechat.py +++ b/pkg/platform/sources/gewechat.py @@ -242,11 +242,7 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter): for msg in geweap_msg: if msg['type'] == 'text': - - if target_type == "group": - await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content']) - elif target_type == "person": - await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content']) + await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id,content=msg['content']) async def reply_message( self,