fix: 修复富友预下单报文格式错(1014) — XML根元素、小程序tradeType、termIP三处问题
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m27s

This commit is contained in:
2026-03-30 11:57:46 +08:00
parent f339fb1987
commit 0c82ae2b73
4 changed files with 36 additions and 21 deletions

View File

@@ -202,6 +202,12 @@ func structToMap(data interface{}) map[string]string {
for i := 0; i < t.NumField(); i++ {
field := t.Field(i)
// 排除 XMLName 字段xml.Name 类型,仅用于指定根元素名称)
if field.Name == "XMLName" {
continue
}
value := v.Field(i).String()
tag := field.Tag.Get("xml")