Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang committed May 17, 2016
1 parent 4542daf commit 1c28e44
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions wxbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def get_contact(self):
self.account_info['normal_member'][contact['UserName']] = {'type': 'group', 'info': contact}
elif contact['UserName'] == self.my_account['UserName']: # 自己
self.account_info['normal_member'][contact['UserName']] = {'type': 'self', 'info': contact}
pass
else:
self.contact_list.append(contact)
self.account_info['normal_member'][contact['UserName']] = {'type': 'contact', 'info': contact}
Expand Down Expand Up @@ -243,22 +242,6 @@ def get_contact_name(self, uid):
else:
return name

def get_group_member_name(self, uid):
info = self.get_group_member_info(uid)
if info is None:
return None
info = info['info']
name = {}
if 'RemarkName' in info and info['RemarkName']:
name['remark_name'] = info['RemarkName']
if 'NickName' in info and info['NickName']:
name['nickname'] = info['NickName']
if 'DisplayName' in info and info['DisplayName']:
name['display_name'] = info['DisplayName']
if len(name) == 0:
return None
else:
return name


@staticmethod
Expand Down

0 comments on commit 1c28e44

Please sign in to comment.