Pārlūkot izejas kodu

add reverse:for v1.1.8 抖音团长商品

tags/v1.1.8
huangjiajun pirms 2 gadiem
vecāks
revīzija
2a023b71c6
3 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. +1
    -0
      tik_tok/md_tik_tok_goods.go
  2. +4
    -0
      tik_tok/svc_tik_tok_goods.go
  3. +0
    -4
      tik_tok/svc_tik_tok_team.go

+ 1
- 0
tik_tok/md_tik_tok_goods.go Parādīt failu

@@ -19,6 +19,7 @@ type TikTokGoods struct {
Cid string `json:"cid"`
ActivityStartTime string `json:"promotion_start_time"`
ActivityEndTime string `json:"promotion_end_time"`
PublicCommission string `json:"public_commission"`
}

type TikTokGoodsLm struct {


+ 4
- 0
tik_tok/svc_tik_tok_goods.go Parādīt failu

@@ -187,6 +187,10 @@ func CommGoodsDetail(goods TikTokGoodsLm) TikTokGoods {
ShopTotalScore: ShopTotalScore,
YhqPrice: "0",
}
if goods.ActivityCosRatio > 0 {
tmp.PublicCommission = tmp.Commission
tmp.Commission = zhios_third_party_utils.AnyToString(goods.ActivityCosRatio / 100)
}
if zhios_third_party_utils.StrToFloat64(tmp.Price) == 0 {
tmp.Price = tmp.CostPrice
} else {


+ 0
- 4
tik_tok/svc_tik_tok_team.go Parādīt failu

@@ -70,11 +70,7 @@ func ActivityProduct(args map[string]string) []TikTokGoods {
return goodsList
}
for _, v := range lmData.Data.Data {
if v.ActivityCosRatio > 0 {
v.CosRatio = v.ActivityCosRatio / 100
}
tmp := CommGoodsDetail(v)

goodsList = append(goodsList, tmp)
}
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList)))


Notiek ielāde…
Atcelt
Saglabāt