diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 7b35c9acc..4abec09e9 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -488,19 +488,13 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, i globals.SugarLogger.Debug(params) var highestPrice, minimumPrice float64 if params["highestPrice"] != nil { - if _, ok := params["highestPrice"].(float64); !ok { + if highestPrice, err = strconv.ParseFloat(params["highestPrice"].(string), 64); err != nil { delete(params, "highestPrice") - } else { - highestPrice = params["highestPrice"].(float64) } } - globals.SugarLogger.Debug("params的值打印位置1") - globals.SugarLogger.Debug(params) if params["minimumPrice"] != nil { - if _, ok := params["minimumPrice"].(float64); !ok { + if highestPrice, err = strconv.ParseFloat(params["minimumPrice"].(string), 64); err != nil { delete(params, "minimumPrice") - } else { - minimumPrice = params["minimumPrice"].(float64) } } globals.SugarLogger.Debug("params的值打印位置2")