Browse Source

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

derrickcyt 8 years ago
parent
commit
75aab9f129
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bot.py

+ 1 - 1
bot.py

@@ -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']: