diff --git a/app.py b/app.py index e3daf9d..750a917 100644 --- a/app.py +++ b/app.py @@ -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'] diff --git a/resources/messages_resource.py b/resources/messages_resource.py index 65fa36b..3555a63 100644 --- a/resources/messages_resource.py +++ b/resources/messages_resource.py @@ -785,7 +785,7 @@ def handle_mod_contacts(token_id,app_id,wxid,msg_data): #friend_wxids.remove('fmessage') #friend_wxids.remove('weixin') - 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']] # 可以调整截取范围 print(f'{wxid}的好友数量{len(friend_wxids)}') gewe_chat.wxchat.save_contacts_brief_to_cache(token_id, app_id, wxid, friend_wxids)