加入群成员列表功能
This commit is contained in:
4
robot.py
4
robot.py
@@ -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("联系人信息已刷新")
|
||||
|
||||
Reference in New Issue
Block a user