From 3ab7d0acda259d77d676f2b487944d39434226f1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 29 Jan 2024 11:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=96=E9=9F=B3=E7=A9=BF=E5=B1=B1=E7=94=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csjplatform/goods.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csjplatform/goods.go b/csjplatform/goods.go index 4e2cac6..c305667 100644 --- a/csjplatform/goods.go +++ b/csjplatform/goods.go @@ -88,6 +88,7 @@ func GoodsList(args map[string]string) []tik_tok.TikTokGoods { return goodsList } for _, v := range lmData.Data.Products { + v.CosRatio = v.CosRatio / 100 tmp := tik_tok.CommGoodsDetail(v) goodsList = append(goodsList, tmp) } @@ -122,6 +123,7 @@ func GoodsDetail(args map[string]string) tik_tok.TikTokGoods { return goodsList } for _, v := range lmData.Data.Products { + v.CosRatio = v.CosRatio / 100 tmp := tik_tok.CommGoodsDetail(v) if tmp.GoodsID == args["product_ids"] { return tmp