Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
finish todo
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbotao828 committed Mar 23, 2018
1 parent 5353dc9 commit b95bc77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wxpy/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,12 @@ def fetch_contact(_username):
if _username not in self.data.raw_chats:
# Todo: 如果 UserName 为 fmessage 则返回一个昵称为 朋友推荐消息 的聊天对象
# Todo: 如果 UserName 为 filehelper 则返回一个昵称为 文件传输助手 的聊天对象
if _username == 'fmessage':
return Friend(self,{
'UserName': 'fmessage','NickName': '朋友推荐消息',})
elif _username == 'filehelper':
return Friend(self,{
'UserName': 'filehelper','NickName': '文件传输助手',})
self.batch_get_contact(_username)
if _username in self.data.raw_chats:
raw_chat = self.data.raw_chats[_username]
Expand Down

0 comments on commit b95bc77

Please sign in to comment.