修正minimumPrice\highestPrice查询
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user