From b85c83327c681d63c6f2f5ad1ba9de7dea633f5f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 6 Apr 2023 14:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tik_tok/svc_tik_tok_team.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tik_tok/svc_tik_tok_team.go b/tik_tok/svc_tik_tok_team.go index b3d2927..b39408b 100644 --- a/tik_tok/svc_tik_tok_team.go +++ b/tik_tok/svc_tik_tok_team.go @@ -78,7 +78,7 @@ func TrusteeshipProduct(args map[string]string) ([]TikTokGoods, int64) { return goodsList, lmData.Data.Total } -func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) { +func ActivityProduct(args map[string]string) ([]TikTokGoods, int64, string) { //args = map[string]string{ // "appkey": "7136155008692651560", // "appSecret": "b132549f-f62c-491e-86f1-89af3658896a", @@ -101,24 +101,25 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) { var goodsList = make([]TikTokGoods, 0) product := gjson.Get(send, "data.data").String() if err != nil || product == "" { - return goodsList, 0 + return goodsList, 0, "" } var lmData struct { Data struct { - Data []TikTokGoodsLm `json:"data"` - Total int64 `json:"total"` + Data []TikTokGoodsLm `json:"data"` + Total int64 `json:"total"` + NextCursor string `json:"next_cursor"` } `json:"data"` } err = json.Unmarshal([]byte(send), &lmData) if err != nil { - return goodsList, 0 + return goodsList, 0, "" } for _, v := range lmData.Data.Data { tmp := CommGoodsDetail(v) goodsList = append(goodsList, tmp) } fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) - return goodsList, lmData.Data.Total + return goodsList, lmData.Data.Total, lmData.Data.NextCursor } func ProductUrl(args map[string]string) map[string]string { //args = map[string]string{