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 }