分类

parent 0a92ce2a
Showing with 3 additions and 0 deletions
...@@ -154,6 +154,9 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp ...@@ -154,6 +154,9 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
valueMap := v.Map() valueMap := v.Map()
attr_value_name := valueMap["key"].String() //属性值:1V attr_value_name := valueMap["key"].String() //属性值:1V
attr_value_id, _ := gredis.String(redisConn.Do("HGET", config.Get("redis_all.class_attr_value_by_val").String(), attr_value_name)) //属性值id attr_value_id, _ := gredis.String(redisConn.Do("HGET", config.Get("redis_all.class_attr_value_by_val").String(), attr_value_name)) //属性值id
if attr_value_name == "" || attr_value_id == "" {
continue
}
ischeck := "0" //是否选中redigo ischeck := "0" //是否选中redigo
if php2go.InArray(attr_value_id, REQUEST_ATTR[attr_name_id]) { if php2go.InArray(attr_value_id, REQUEST_ATTR[attr_name_id]) {
......
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