添加 刷新通讯录功能,用于解决冗余数据问题。
This commit is contained in:
@@ -627,12 +627,12 @@ class ContactsDBOperator(BaseDBOperator):
|
||||
return None
|
||||
|
||||
#新增群信息删除功能
|
||||
def delete_chatroom_member_info(self, chatroom_id: str, wxid: str) -> bool:
|
||||
def delete_chatroom_info(self, chatroom_id: str) -> bool:
|
||||
"""删除群成员信息"""
|
||||
try:
|
||||
sql = "DELETE FROM t_chatroom_member WHERE chatroom_id = %s AND wxid = %s"
|
||||
self.execute_update(sql, (chatroom_id, wxid))
|
||||
self.LOG.info(f"成功删除群{chatroom_id}成员{wxid}信息")
|
||||
sql = "DELETE FROM t_chatroom_member WHERE chatroom_id = %s"
|
||||
self.execute_update(sql, (chatroom_id))
|
||||
self.LOG.info(f"成功删除群{chatroom_id}信息")
|
||||
sql = "DELETE FROM t_chatrooms WHERE chatroom_id = %s"
|
||||
self.execute_update(sql, (chatroom_id,))
|
||||
self.LOG.info(f"成功删除群聊 {chatroom_id} 信息")
|
||||
|
||||
Reference in New Issue
Block a user