总结的时候,不进行@ 引用分析

This commit is contained in:
liuwei
2025-04-01 17:58:33 +08:00
parent bd4c6dd627
commit c96f03b65f

View File

@@ -329,16 +329,11 @@ class MessageStorage:
'message_type']
try:
if message_type == 49: # 应用消息类型
# 检查是否为引用消息
if '<refermsg>' 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}")