[v1.4.2] ToStringMap

This commit is contained in:
兔子
2024-08-29 23:23:02 +08:00
parent d87a67db73
commit 3cc4a9587f
3 changed files with 22 additions and 15 deletions

View File

@@ -180,6 +180,12 @@ func (this *AsciiStruct) ToString(params map[string]any) (result string) {
}
}
// 去除最后一个 &
text := item.String()
if len(text) > 0 {
text = text[:len(text)-1]
}
// 返回排序后的字符串
return item.String()
return text
}