This commit is contained in:
cdle
2023-07-01 12:53:22 +08:00
parent 04d7492f6c
commit 8fe9f6ec3d
9 changed files with 38 additions and 18 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
func (sender *Strings) ParseXml(str string) map[string]interface{} {
m, err := mxj.NewMapXml([]byte(str))
if err != nil {
console.Error("xml解析错误:", err)
pluginConsole(sender.UUID).Error("xml解析错误:", err)
}
return m
}
@@ -15,7 +15,7 @@ func (sender *Strings) ParseXml(str string) map[string]interface{} {
func (sender *Strings) Xml(m map[string]interface{}) string {
xmlStr, err := mxj.Map(m).Xml()
if err != nil {
console.Error("xml编码错误:", err)
pluginConsole(sender.UUID).Error("xml编码错误:", err)
}
return string(xmlStr)
}