diff --git a/csjplatform/goods.go b/csjplatform/goods.go index c2a3778..ed13d61 100644 --- a/csjplatform/goods.go +++ b/csjplatform/goods.go @@ -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 == "" { diff --git a/tik_tok/md_tik_tok_goods.go b/tik_tok/md_tik_tok_goods.go index a24385b..035f13d 100644 --- a/tik_tok/md_tik_tok_goods.go +++ b/tik_tok/md_tik_tok_goods.go @@ -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"`