Bläddra i källkod

调整日志

develop
H Vs 7 timmar sedan
förälder
incheckning
c91fe3432e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      app/endpoints/pipeline_endpoint.py

+ 1
- 1
app/endpoints/pipeline_endpoint.py Visa fil

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


Laddar…
Avbryt
Spara