瀏覽代碼

调整

d1
H Vs 1 月之前
父節點
當前提交
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)
# 更新缓存


Loading…
取消
儲存