Explorar el Código

调整

develop
H Vs hace 2 meses
padre
commit
345252ad85
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      app.py
  2. +1
    -1
      resources/messages_resource.py

+ 1
- 1
app.py Ver fichero

@@ -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']


+ 1
- 1
resources/messages_resource.py Ver fichero

@@ -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)


Cargando…
Cancelar
Guardar