fix bug that it can't find group personal name.

This commit is contained in:
derrickcyt
2017-01-09 17:17:54 +08:00
parent 91de5add6a
commit 75aab9f129
+1 -1
View File
@@ -71,7 +71,7 @@ class TulingWXBot(WXBot):
self.send_msg_by_uid(self.tuling_auto_reply(msg['user']['id'], msg['content']['data']), msg['user']['id'])
elif msg['msg_type_id'] == 3 and msg['content']['type'] == 0: # group text message
if 'detail' in msg['content']:
my_names = self.get_group_member_name(self.my_account['UserName'], msg['user']['id'])
my_names = self.get_group_member_name(msg['user']['id'], self.my_account['UserName'])
if my_names is None:
my_names = {}
if 'NickName' in self.my_account and self.my_account['NickName']: