1
This commit is contained in:
@@ -210,8 +210,10 @@ func (a *API) UpdateSettleInfo(customerNo string, param *UpdateSettleInfoReq) (*
|
|||||||
if customerNo == "" {
|
if customerNo == "" {
|
||||||
return nil, nil, fmt.Errorf("商户ID不能为空")
|
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)
|
result, err := a.AccessAPI2(BaseProdChangeUrl, UpdateSettleChange, http.MethodPost, customerNo, mapParam)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user