分类品牌

parent 647544b8
Showing with 7 additions and 5 deletions
...@@ -124,11 +124,13 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp ...@@ -124,11 +124,13 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
brandId := valueMap["key"].String() brandId := valueMap["key"].String()
//todo 标准品牌 //todo 标准品牌
brand_name_json, _ := redis.String(redisConn.Do("Hget", "standard_brand", brandId)) //brand_name_json, _ := redis.String(redisConn.Do("Hget", "standard_brand", brandId))
brandName := gjson.Get(brand_name_json, "brand_name").String() //brandName := gjson.Get(brand_name_json, "brand_name").String()
if brandName == "" { //if brandName == "" {
brandName, _ = redis.String(redisConn.Do("Hget", "brand", brandId)) // brandName, _ = redis.String(redisConn.Do("Hget", "brand", brandId))
} //}
brandName,_ := redis.String(redisConn.Do("Hget", "brand", brandId))
ischeck := "0" //是否选中 ischeck := "0" //是否选中
if php2go.InArray(brandId, REQUEST_ATTR["brand"]) { if php2go.InArray(brandId, REQUEST_ATTR["brand"]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment