浏览代码

调整

d1
H Vs 4 周前
父节点
当前提交
51cfebdb9a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      services/gewe_service.py

+ 3
- 3
services/gewe_service.py 查看文件

@@ -236,7 +236,7 @@ class GeWeService:
response_data = await response.json()
return response_data.get('data')
async def get_detail_info(self, token_id, app_id, wxids):
async def get_detail_info_async(self, token_id, app_id, wxids):
'''
获取群/好友详细信息
1<= wxids <=20
@@ -806,7 +806,7 @@ class GeWeService:
cache.extend(f for f in friends_brief if f["nickName"])
friends_no_brief_wxid = [f['userName'] for f in friends_brief if not f["nickName"]]
if friends_no_brief_wxid:
detailed_info = self.get_detail_info(token_id, app_id, friends_no_brief_wxid)
detailed_info = await self.get_detail_info_async(token_id, app_id, friends_no_brief_wxid)
cache.extend(detailed_info)
# 分批处理
@@ -822,7 +822,7 @@ class GeWeService:

friends_no_brief_wxid = [f['userName'] for f in friends_brief if not f["nickName"]]
if friends_no_brief_wxid:
detailed_info = self.get_detail_info(token_id, app_id, friends_no_brief_wxid)
detailed_info = await self.get_detail_info_async(token_id, app_id, friends_no_brief_wxid)
cache.extend(detailed_info)
# 更新缓存


正在加载...
取消
保存