Browse Source

抖音穿山甲

master
huangjiajun 10 months ago
parent
commit
3ab7d0acda
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      csjplatform/goods.go

+ 2
- 0
csjplatform/goods.go View File

@@ -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


Loading…
Cancel
Save