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)