From c96f03b65fc862334840e562e6ace179a1e63393 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 1 Apr 2025 17:58:33 +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 | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/message_storage/message_to_db.py b/message_storage/message_to_db.py index 18de517..4970d39 100644 --- a/message_storage/message_to_db.py +++ b/message_storage/message_to_db.py @@ -329,16 +329,11 @@ class MessageStorage: 'message_type'] try: if message_type == 49: # 应用消息类型 - # 检查是否为引用消息 - if '' in content: - # 使用格式化工具处理引用消息 - content = format_quote_message(content) - else: - # 其他类型的应用消息,解析 XML 提取标题 - root = ET.fromstring(content) - title_elem = root.find('.//title') - if title_elem is not None: - content = title_elem.text + # 其他类型的应用消息,解析 XML 提取标题 + root = ET.fromstring(content) + title_elem = root.find('.//title') + if title_elem is not None: + content = title_elem.text except Exception as e: logger.error(f"解析消息类型49出错: {e}")