From 496050ded0212fc08368104c1bfe01683f52a58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=E5=87=A1=E6=A2=A6?= Date: Wed, 8 Jul 2020 17:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3minimumPrice\highestPrice?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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")