From 14770b37206cdbe207ab2637abde9a44638612a6 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 28 Jul 2025 15:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9B=B4=E6=96=B0=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E4=BA=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/robot.py b/robot.py index fdcbc91..a177925 100644 --- a/robot.py +++ b/robot.py @@ -616,16 +616,18 @@ class Robot: self.allContacts[wxid] = nick_name self.head_images[wxid] = small_head_img_url - friends = await self.ipad_bot.get_contract_list() - self.all_chatroom_members = self.contacts_db.get_chatroom_member_list_name_all() - self.contact_manager.set_contacts(self.allContacts, friends, self.head_images, - self.all_chatroom_members) self.LOG.info(f"已更新群 {group_id} 的成员信息") else: self.LOG.error(f"获取群 {group_id} 信息失败,证明用户无该群信息,删除群的相关资料。") # 删除群数据库中的群信息 self.contacts_db.delete_chatroom_all_info(group_id) + self.allContacts.pop(group_id) + + friends = await self.ipad_bot.get_contract_list() + self.all_chatroom_members = self.contacts_db.get_chatroom_member_list_name_all() + self.contact_manager.set_contacts(self.allContacts, friends, self.head_images, + self.all_chatroom_members) self.LOG.info("联系人信息刷新完成") async def login_twice_auto_auth(self) -> None: