From 2784a7827f4e4c5df7776cfc78940af06e623edf Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 1 Apr 2025 17:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E7=BB=93=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=BF=9B=E8=A1=8C@=20=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message_storage/message_to_db.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/message_storage/message_to_db.py b/message_storage/message_to_db.py index 4970d39..638907b 100644 --- a/message_storage/message_to_db.py +++ b/message_storage/message_to_db.py @@ -10,9 +10,6 @@ from wcferry import WxMsg, Wcf from db.connection import DBConnectionManager from db.message_storage import MessageStorageDB -# 导入消息格式化工具 -from utils.message_formatter import format_quote_message - # 配置日志 logging.basicConfig( level=logging.INFO, @@ -119,7 +116,7 @@ class MessageStorage: # 确保目标目录存在 if not os.path.exists(target_dir): os.makedirs(target_dir, exist_ok=True) - + # 尝试使用wcf下载图片到分组后的目录 download_path = self.wcf.download_image(msg.id, msg.extra, target_dir) if download_path: