From ec7ec1c363e4da68752b1f655fe8c035eeeb2771 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 29 Dec 2025 17:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BC=98=E5=8C=96=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/wechat/message_to_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/wechat/message_to_db.py b/utils/wechat/message_to_db.py index 290e549..27b8715 100644 --- a/utils/wechat/message_to_db.py +++ b/utils/wechat/message_to_db.py @@ -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)