From 345252ad859527c1326ebcadf417b816ee5da1cd Mon Sep 17 00:00:00 2001 From: H Vs Date: Fri, 28 Feb 2025 17:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- resources/messages_resource.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)