Browse Source

抖音穿山甲

master
huangjiajun 9 months ago
parent
commit
99bc138a00
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      csjplatform/goods.go
  2. +6
    -0
      tik_tok/md_tik_tok_goods.go

+ 1
- 0
csjplatform/goods.go View File

@@ -70,6 +70,7 @@ func GoodsList(args map[string]string) []tik_tok.TikTokGoods {
params["activity_id"] = zhios_third_party_utils.StrToInt(args["activity_id"])
}
send, err := Send(args["app_id"], args["app_secret"], "product/search", params)
fmt.Println(send)
var goodsList = make([]tik_tok.TikTokGoods, 0)
product := gjson.Get(send, "data.products").String()
if err != nil || product == "" {


+ 6
- 0
tik_tok/md_tik_tok_goods.go View File

@@ -24,6 +24,9 @@ type TikTokGoods struct {
UpdateTime string `json:"update_time"`
ApplyId string `json:"apply_id"`
ActivityId string `json:"activity_id"`
ProductId int64 `json:"product_id"`
IsKolProduct bool `json:"is_kol_product"`
Ext string `json:"ext"`
}
type TikTokGoodsLmNew struct {
ActivityInfo struct {
@@ -149,6 +152,9 @@ type TikTokGoodsLm struct {
ShopTotalScore interface{} `json:"shop_total_score"`
UpdateTime string `json:"update_time"`
ApplyId int64 `json:"apply_id"`
IsKolProduct bool `json:"is_kol_product"`
Ext string `json:"ext"`
ActivityId int `json:"activity_id"`
}
type ShopTotalScoreData struct {
Level int `json:"level"`


Loading…
Cancel
Save