#如果atuserlist_set 为空,就打印XML

This commit is contained in:
liuwei
2025-04-10 09:44:43 +08:00
parent f45259ea2e
commit 992fbdab18

View File

@@ -354,6 +354,9 @@ class PointTradePlugin(MessagePluginInterface):
# 现在set中存在{''}这种,请过滤掉
atuserlist_set.discard('')
self.LOG.info(f"解析到的 @用户列表: {atuserlist_set}")
#如果atuserlist_set 为空就打印XML
if not atuserlist_set:
self.LOG.info(f"解析到的 @用户列表为空,XML:{xml}")
return atuserlist_set
except ET.ParseError as e:
self.LOG.error(f"解析 XML 失败: {e}")