fix: 处理群消息时变量引用错误

This commit is contained in:
2021-05-05 16:24:49 +08:00
parent 79a5f3a2d5
commit 5f17641d4b
+1 -1
View File
@@ -112,7 +112,7 @@ class WXBot(WebWeixin):
params['to_name'] = '_self'
if msg['FromUserName'][:2] == '@@':
# 群消息
if ":<br/>" in content:
if ":<br/>" in msg['Content']:
[people, content] = msg['Content'].split(':<br/>', 1)
params['group_name'] = self.getUserRemarkName(msg['FromUserName'])
params['from_name'] = self.getUserRemarkName(people)