尝试优化更新内容

This commit is contained in:
liuwei
2025-12-29 17:52:30 +08:00
parent b515486fa9
commit ec7ec1c363

View File

@@ -188,8 +188,8 @@ class MessageStorage:
f.write(data)
else:
skipped = True
if not skipped:
logger.warning(f"跳过图片保存{room_id}-{file_name}")
if not skipped:
# ===== 6. 更新数据库 =====
web_path = f"/static/images/{room_id}/{file_name}"
self.message_db.update_message_image_file_path(msg.msg_id, web_path)