|
|
@@ -75,7 +75,7 @@ def fetch_and_save_contacts(): |
|
|
|
if status=='1': |
|
|
|
ret,msg,contacts_list = wxchat.fetch_contacts_list(token_id, app_id) |
|
|
|
if ret==200: |
|
|
|
friend_wxids = [c for c in contacts_list['friends'] if c not in ['fmessage', 'medianote','weixin']] # 可以调整截取范围 |
|
|
|
friend_wxids = [c for c in contacts_list['friends'] if c not in ['fmessage', 'medianote','weixin','weixingongzhong']] # 可以调整截取范围 |
|
|
|
wxchat.save_contacts_brief_to_cache(token_id, app_id, wxid, friend_wxids) |
|
|
|
logger.info(f'微信ID {wxid} 登录APPID {app_id} 成功,联系人已定时保存') |
|
|
|
chatrooms=contacts_list['chatrooms'] |
|
|
|