This commit is contained in:
邹宗楠
2025-04-28 11:36:37 +08:00
parent 31e4cc29bf
commit 625a3a3457
2 changed files with 5 additions and 12 deletions

View File

@@ -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 查询分类是否支持七天无理由退货