fix: 修复富友预下单报文格式错(1014) — XML根元素、小程序tradeType、termIP三处问题
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m27s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m27s
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user