This commit is contained in:
邹宗楠
2025-07-14 10:55:05 +08:00
parent d50435775c
commit 15342c0d31

View File

@@ -210,8 +210,10 @@ func (a *API) UpdateSettleInfo(customerNo string, param *UpdateSettleInfoReq) (*
if customerNo == "" {
return nil, nil, fmt.Errorf("商户ID不能为空")
}
mapParam := utils.Struct2Map(param, "", false)
var mapParam map[string]interface{}
if param != nil {
mapParam = utils.Struct2Map(param, "", false)
}
result, err := a.AccessAPI2(BaseProdChangeUrl, UpdateSettleChange, http.MethodPost, customerNo, mapParam)
if err != nil {
return nil, nil, err