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