Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
cbe37a581f
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      tik_tok/md_tik_tok_goods.go
  2. +1
    -0
      tik_tok/svc_tik_tok_goods.go

+ 2
- 0
tik_tok/md_tik_tok_goods.go View File

@@ -20,6 +20,7 @@ type TikTokGoods struct {
ActivityStartTime string `json:"promotion_start_time"`
ActivityEndTime string `json:"promotion_end_time"`
PublicCommission string `json:"public_commission"`
ServiceRatio string `json:"service_ratio"`
}

type TikTokGoodsLm struct {
@@ -42,6 +43,7 @@ type TikTokGoodsLm struct {
Title string `json:"title"`
ActivityStartTime string `json:"promotion_start_time"`
ActivityEndTime string `json:"promotion_end_time"`
ServiceRatio string `json:"service_ratio"`
Imgs []string `json:"imgs"`
ShopTotalScore ShopTotalScore `json:"shop_total_score"`
}


+ 1
- 0
tik_tok/svc_tik_tok_goods.go View File

@@ -186,6 +186,7 @@ func CommGoodsDetail(goods TikTokGoodsLm) TikTokGoods {
ActivityEndTime: goods.ActivityEndTime,
ShopTotalScore: ShopTotalScore,
YhqPrice: "0",
ServiceRatio: goods.ServiceRatio,
}
if goods.ActivityCosRatio > 0 {
tmp.PublicCommission = tmp.Commission


Loading…
Cancel
Save