同时维护群组明细信息
This commit is contained in:
3
robot.py
3
robot.py
@@ -168,6 +168,9 @@ class Robot(Job):
|
||||
self.LOG.info(f"chatroom_info: {chatroom_info}")
|
||||
self.contacts_db.save_chatroom_info(chatroom_info.get('data', {}))
|
||||
self.LOG.info(f"添加新的群信息到数据库成功:{chatroom_info}")
|
||||
# 添加 memberList 到群组信息表中
|
||||
self.contacts_db.save_chatroom_member_detail(msg.roomid,
|
||||
chatroom_info.get('data', {}).get('memberList', []))
|
||||
except Exception as e:
|
||||
self.LOG.error(f"chatroom_info save error: {e}")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user