From c9db34796bcff294b110d7c3096049fa673e55a2 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 4 Apr 2023 10:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tik_tok/svc_tik_tok_goods.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tik_tok/svc_tik_tok_goods.go b/tik_tok/svc_tik_tok_goods.go index fdbf124..4e1eb2e 100644 --- a/tik_tok/svc_tik_tok_goods.go +++ b/tik_tok/svc_tik_tok_goods.go @@ -229,6 +229,9 @@ func CommGoodsDetail(goods TikTokGoodsLm) TikTokGoods { } else { tmp.YhqPrice = zhios_third_party_utils.Float64ToStr(zhios_third_party_utils.AnyToFloat64(goods.Price)/100 - zhios_third_party_utils.AnyToFloat64(goods.CouponPrice)/100) } + if len(tmp.Imgs) == 0 { + tmp.Imgs = []string{tmp.GoodsImg} + } return tmp }