This commit is contained in:
邹宗楠
2025-07-18 16:20:40 +08:00
parent 61d2a6d4b8
commit 287adae580

View File

@@ -183,7 +183,7 @@ func (a *API) MerchantFeeQuery(customerNo string, productCode string) (*Merchant
} }
// MerchantFeeChange 商户费率信息变更 // MerchantFeeChange 商户费率信息变更
func (a *API) MerchantFeeChange(param *FeeChangeReq, customerNo string) (int, string, error) { func (a *API) MerchantFeeChange(param *FeeChangeReq, customerNo string) (int64, string, error) {
if customerNo == "" { if customerNo == "" {
return 0, "", fmt.Errorf("商户ID不能为空") return 0, "", fmt.Errorf("商户ID不能为空")
} }
@@ -195,14 +195,12 @@ func (a *API) MerchantFeeChange(param *FeeChangeReq, customerNo string) (int, st
return 0, "", err return 0, "", err
} }
data := &FeeChangeResp{} data := &CahngePublic{}
if err = utils.Map2StructByJson(result, data, false); err != nil { if err = utils.Map2StructByJson(result, data, false); err != nil {
return 0, "", err return 0, "", err
} }
if data.StatusCodeValue != utils.Str2Int(BaseSuccess) {
return 0, "", fmt.Errorf(data.StatusCode) return data.ReviewRelatedId, data.Message, nil
}
return data.Body.ReviewRelatedId, data.Body.Message, nil
} }
// UpdateSettleInfo 修改用户结算信息(当param为空时,是查询,不为空时是变更) // UpdateSettleInfo 修改用户结算信息(当param为空时,是查询,不为空时是变更)