加入群成员列表功能

This commit is contained in:
liuwei
2025-04-08 15:10:46 +08:00
parent 65ef82d044
commit e33e0e5263
4 changed files with 163 additions and 23 deletions

View File

@@ -58,7 +58,7 @@ class Robot(Job):
# 初始化联系人管理器并设置联系人
self.contact_manager = ContactManager.get_instance()
self.allContacts = self.get_all_contacts()
self.contact_manager.set_contacts(self.allContacts, self.wcf.get_friends())
self.contact_manager.set_contacts(self.allContacts, self.wcf)
self.LOG.info(f"DB+REDIS 连接池开始初始化")
# 使用单例模式获取实例
@@ -545,5 +545,5 @@ class Robot(Job):
def refresh_contacts(self):
"""刷新联系人信息"""
self.allContacts = self.get_all_contacts()
self.contact_manager.refresh_contacts(self.allContacts, self.wcf.get_friends())
self.contact_manager.refresh_contacts(self.allContacts, self.wcf)
self.LOG.info("联系人信息已刷新")