调整xml内容

This commit is contained in:
liuwei
2025-05-16 18:20:04 +08:00
parent c6f9335b12
commit d890ab2b37
2 changed files with 25 additions and 15 deletions

View File

@@ -16,6 +16,7 @@ from utils.robot_cmd.robot_command import Feature, PermissionStatus, GroupBotMan
import mysql.connector.pooling
from wechat_ipad import WechatAPIClient
from wechat_ipad.models.message import WxMessage
class PointTradePlugin(MessagePluginInterface):
@@ -161,8 +162,9 @@ class PointTradePlugin(MessagePluginInterface):
command = content.split(" ")
sender = message.get("sender")
roomid = message.get("roomid", "")
xml = message.get("xml", "")
msg: WxMessage = message.get("full_wx_msg")
xml = msg.msg_source
# 检查命令格式
if len(command) < 3:
client_msg_id, create_time, new_msg_id = await self.bot.send_at_message((roomid if roomid else sender),