1
This commit is contained in:
@@ -521,19 +521,19 @@ func (a *API) OrderUserInfoSensitive(orderId, name, tel, address string) {
|
||||
}
|
||||
|
||||
// GetProductUpdateRule 查询分类是否支持七天无理由退货
|
||||
func (a *API) GetProductUpdateRule(categoryId int64) bool {
|
||||
func (a *API) GetProductUpdateRule(categoryId int64) (bool, string) {
|
||||
request := product_getProductUpdateRule_request.New()
|
||||
param := request.GetParams()
|
||||
param.CategoryId = categoryId
|
||||
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
if err != nil {
|
||||
return false
|
||||
return false, ""
|
||||
}
|
||||
if result.Code != RequestSuccessCode {
|
||||
return false
|
||||
return false, ""
|
||||
}
|
||||
return result.Data.AfterSaleRule.SupplyDayReturnRule.Enable
|
||||
return result.Data.AfterSaleRule.SupplyDayReturnRule.Enable, result.Data.AfterSaleRule.SupplyDayReturnRule.Options[0].Value
|
||||
}
|
||||
|
||||
// GetProductUpdateRule2 查询分类是否支持七天无理由退货
|
||||
|
||||
Reference in New Issue
Block a user