huangjiajun преди 1 година
родител
ревизия
cbe37a581f
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  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 Целия файл

@@ -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 Целия файл

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


Зареждане…
Отказ
Запис