调整入库内容,扩展一下其他内容

This commit is contained in:
liuwei
2025-03-06 11:39:25 +08:00
parent 9267fcac86
commit ac2e902284
2 changed files with 10 additions and 6 deletions

View File

@@ -286,8 +286,7 @@ class Robot(Job):
# 聊天记录入库动作:
try:
now_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
self.message_storage.archive_message(msg.roomid, now_time, msg.sender, msg.content, msg.type, msg.extra)
self.message_storage.archive_message(msg)
# self.LOG.info(f"msg.xml:{msg.xml}")
except Exception as e:
self.LOG.error(f"archive_message error: {e}")