diff --git a/utils/wechat/contact_manager.py b/utils/wechat/contact_manager.py index ffaf74d..165589f 100644 --- a/utils/wechat/contact_manager.py +++ b/utils/wechat/contact_manager.py @@ -6,7 +6,6 @@ from loguru import logger from typing import Dict, Optional, List, Tuple - from utils.json_converter import json_to_object @@ -91,7 +90,8 @@ class ContactManager: # 判断是否为群组(wxid以@chatroom结尾) elif wxid.endswith('@chatroom'): self._group_contacts[wxid] = nickname - + else: + self._personal_contacts[wxid] = nickname self._logger.info(f"联系人分类完成: {len(self._group_contacts)} 个群组, " f"{len(self._personal_contacts)} 个个人联系人, " f"{len(self._public_contacts)} 个公共好友, "