|
@@ -88,6 +88,7 @@ func GoodsList(args map[string]string) []tik_tok.TikTokGoods { |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
for _, v := range lmData.Data.Products { |
|
|
for _, v := range lmData.Data.Products { |
|
|
|
|
|
v.CosRatio = v.CosRatio / 100 |
|
|
tmp := tik_tok.CommGoodsDetail(v) |
|
|
tmp := tik_tok.CommGoodsDetail(v) |
|
|
goodsList = append(goodsList, tmp) |
|
|
goodsList = append(goodsList, tmp) |
|
|
} |
|
|
} |
|
@@ -122,6 +123,7 @@ func GoodsDetail(args map[string]string) tik_tok.TikTokGoods { |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
for _, v := range lmData.Data.Products { |
|
|
for _, v := range lmData.Data.Products { |
|
|
|
|
|
v.CosRatio = v.CosRatio / 100 |
|
|
tmp := tik_tok.CommGoodsDetail(v) |
|
|
tmp := tik_tok.CommGoodsDetail(v) |
|
|
if tmp.GoodsID == args["product_ids"] { |
|
|
if tmp.GoodsID == args["product_ids"] { |
|
|
return tmp |
|
|
return tmp |
|
|