Commit 45c129cf by hcy001

修复自营品牌显示问题

parent af40d433
Showing with 6 additions and 5 deletions
......@@ -115,8 +115,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
standardBrand = ly.GetStandardBrand(brandId)
}
A.Set("brand_id", brandId)
A.Set("brand_name", brandName)
A.Set("brand_id_spu", brandId)
A.Set("brand_name_spu", brandName)
A.Set("standard_brand", standardBrand)
A.Set("class_id1", classId1) //
......@@ -170,9 +170,10 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
A.Set("cn_delivery_time", cnDeliveryTime) // 货期
//查询品牌名称(作废,现在改成读联营的品牌库,之前有关联自营商品到spu_id)
// brand_id := gjson.Get(info, "brand_id").Int()
// brand_info, _ := gredis.String(redisConn.Do("HGET", "Self_Brand", brand_id))
// A.Set("brand_name", gjson.Get(brand_info, "brand_name").String())
brand_id := gjson.Get(info, "brand_id").Int()
brand_info, _ := gredis.String(redisConn.Do("HGET", "Self_Brand", brand_id))
A.Set("brand_name", gjson.Get(brand_info, "brand_name").String())
A.Set("brand_id", brand_id)
if fast != "1" { //不是快速查询
// 供应商名称
......
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