From 5f17641d4b7f6930221c9c9ca6f025c12746d01a Mon Sep 17 00:00:00 2001 From: mattuy Date: Wed, 5 May 2021 16:24:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E7=BE=A4=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E5=8F=98=E9=87=8F=E5=BC=95=E7=94=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 19d400e..9815eda 100644 --- a/main.py +++ b/main.py @@ -112,7 +112,7 @@ class WXBot(WebWeixin): params['to_name'] = '_self' if msg['FromUserName'][:2] == '@@': # 群消息 - if ":
" in content: + if ":
" in msg['Content']: [people, content] = msg['Content'].split(':
', 1) params['group_name'] = self.getUserRemarkName(msg['FromUserName']) params['from_name'] = self.getUserRemarkName(people)