总结的时候,不进行@ 引用分析
This commit is contained in:
@@ -329,16 +329,11 @@ class MessageStorage:
|
|||||||
'message_type']
|
'message_type']
|
||||||
try:
|
try:
|
||||||
if message_type == 49: # 应用消息类型
|
if message_type == 49: # 应用消息类型
|
||||||
# 检查是否为引用消息
|
# 其他类型的应用消息,解析 XML 提取标题
|
||||||
if '<refermsg>' in content:
|
root = ET.fromstring(content)
|
||||||
# 使用格式化工具处理引用消息
|
title_elem = root.find('.//title')
|
||||||
content = format_quote_message(content)
|
if title_elem is not None:
|
||||||
else:
|
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:
|
except Exception as e:
|
||||||
logger.error(f"解析消息类型49出错: {e}")
|
logger.error(f"解析消息类型49出错: {e}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user