ser

parent afcb8b0d
Showing with 11 additions and 9 deletions
...@@ -77,16 +77,18 @@ func CurlGoodsInfo(ctx *gin.Context, goodsIdsStr string, params req.Param) (good ...@@ -77,16 +77,18 @@ func CurlGoodsInfo(ctx *gin.Context, goodsIdsStr string, params req.Param) (good
if data.IsObject() { if data.IsObject() {
var goods model.ApiGoods var goods model.ApiGoods
//todo 2023.1.10 标准品牌 //todo 2023.1.10 标准品牌
standard_brand := data.Get("standard_brand").String() //standard_brand := data.Get("standard_brand").String()
standard_brand_name := gjson.Get(standard_brand, "brand_name").String() //standard_brand_name := gjson.Get(standard_brand, "brand_name").String()
if standard_brand_name != "" { //if standard_brand_name != "" {
goods.StandardBrandName = standard_brand_name // goods.StandardBrandName = standard_brand_name
goods.StandardBrandUrl = "https://ly.ichunt.com/brand/" + gjson.Get(standard_brand, "standard_brand_id").String() + ".html" // goods.StandardBrandUrl = "https://ly.ichunt.com/brand/" + gjson.Get(standard_brand, "standard_brand_id").String() + ".html"
} else { //} else {
goods.StandardBrandName = "" // goods.StandardBrandName = ""
goods.StandardBrandUrl = "" // goods.StandardBrandUrl = ""
} //}
goods.StandardBrandName = ""
goods.StandardBrandUrl = ""
goods.PickType = int(data.Get("pick_type").Int()) goods.PickType = int(data.Get("pick_type").Int())
goods.BarCode = data.Get("bar_code").String() goods.BarCode = data.Get("bar_code").String()
goods.GoodsId = data.Get("goods_id").String() goods.GoodsId = data.Get("goods_id").String()
......
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