Sfoglia il codice sorgente

调整日志

develop
H Vs 7 ore fa
parent
commit
c91fe3432e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/endpoints/pipeline_endpoint.py

+ 1
- 1
app/endpoints/pipeline_endpoint.py Vedi File

@@ -353,7 +353,7 @@ async def handle_mod_contacts_worker_async(request:Request,token_id,app_id,wxid,
contact_wxid = msg_data["UserName"]["string"]
ret,msg,contacts_list = await request.app.state.gewe_service.fetch_contacts_list_async(token_id, app_id)
friend_wxids = [c for c in contacts_list['friends'] if c not in ['fmessage', 'medianote','weixin','weixingongzhong','tmessage']] # 可以调整截取范围
print(f'{wxid}的好友资料变更,数量 {len(friend_wxids)}')
logger.info(f'{wxid}的好友资料变更,数量 {len(friend_wxids)}')
data = await request.app.state.gewe_service.save_contacts_brief_to_cache_async(token_id, app_id, wxid, friend_wxids)
#k_message = wx_all_contacts_message(wxid, data)


Loading…
Annulla
Salva