浏览代码

调整日志

develop
H Vs 9 小时前
父节点
当前提交
c91fe3432e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/endpoints/pipeline_endpoint.py

+ 1
- 1
app/endpoints/pipeline_endpoint.py 查看文件

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


正在加载...
取消
保存