去除无效代码
This commit is contained in:
@@ -257,28 +257,6 @@ class ContactManager:
|
||||
self._personal_contacts[wxid] = nickname
|
||||
self._logger.debug(f"已更新联系人: {wxid} -> {nickname}")
|
||||
|
||||
def refresh_contacts(self, new_contacts: Dict[str, str], friends: List[str]) -> None:
|
||||
"""刷新联系人信息
|
||||
|
||||
Args:
|
||||
new_contacts: 新的联系人字典
|
||||
friends: 联系人信息,格式为 ["wxid","wxid2"]
|
||||
|
||||
"""
|
||||
self._contacts = new_contacts
|
||||
self._friends = friends
|
||||
# friends: 好友清单 contact = {
|
||||
# "wxid": cnt.get("wxid", ""),
|
||||
# "code": cnt.get("code", ""),
|
||||
# "remark": cnt.get("remark", ""),
|
||||
# "name": cnt.get("name", ""),
|
||||
# "country": cnt.get("country", ""),
|
||||
# "province": cnt.get("province", ""),
|
||||
# "city": cnt.get("city", ""),
|
||||
# "gender": gender}
|
||||
self._logger.info(f"联系人信息已刷新,共 {len(new_contacts)} 个联系人")
|
||||
self._classify_contacts()
|
||||
|
||||
def get_contact_statistics(self) -> Tuple[int, int, int, int, int]:
|
||||
"""获取联系人统计信息
|
||||
|
||||
|
||||
Reference in New Issue
Block a user