调整群成员逻辑
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
from loguru import logger
|
from loguru import logger
|
||||||
from typing import Dict, Optional, List, Tuple
|
from typing import Dict, Optional, List, Tuple
|
||||||
|
|
||||||
|
|
||||||
from utils.json_converter import json_to_object
|
from utils.json_converter import json_to_object
|
||||||
|
|
||||||
|
|
||||||
@@ -91,7 +90,8 @@ class ContactManager:
|
|||||||
# 判断是否为群组(wxid以@chatroom结尾)
|
# 判断是否为群组(wxid以@chatroom结尾)
|
||||||
elif wxid.endswith('@chatroom'):
|
elif wxid.endswith('@chatroom'):
|
||||||
self._group_contacts[wxid] = nickname
|
self._group_contacts[wxid] = nickname
|
||||||
|
else:
|
||||||
|
self._personal_contacts[wxid] = nickname
|
||||||
self._logger.info(f"联系人分类完成: {len(self._group_contacts)} 个群组, "
|
self._logger.info(f"联系人分类完成: {len(self._group_contacts)} 个群组, "
|
||||||
f"{len(self._personal_contacts)} 个个人联系人, "
|
f"{len(self._personal_contacts)} 个个人联系人, "
|
||||||
f"{len(self._public_contacts)} 个公共好友, "
|
f"{len(self._public_contacts)} 个公共好友, "
|
||||||
|
|||||||
Reference in New Issue
Block a user