From 191117a85a6cdeefef7a5127e50200c0a9e9afaa Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 4 Sep 2023 17:57:44 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tik_tok/svc_tik_tok_team.go b/tik_tok/svc_tik_tok_team.go index d250b9d..34600e3 100644 --- a/tik_tok/svc_tik_tok_team.go +++ b/tik_tok/svc_tik_tok_team.go @@ -185,7 +185,7 @@ func TeamOrder(args map[string]string) *[]TikTokTeamOrder { goodsList = &lmData.Data.Orders return goodsList } -func TeamOrderNew(args map[string]string) *[]TikTokTeamOrderNew { +func TeamOrderNew(args map[string]string) (*[]TikTokTeamOrderNew, string) { params := map[string]interface{}{ "size": args["size"], "cursor": args["cursor"], @@ -197,17 +197,18 @@ func TeamOrderNew(args map[string]string) *[]TikTokTeamOrderNew { var goodsList *[]TikTokTeamOrderNew product := gjson.Get(send, "data").String() if err != nil || product == "" { - return goodsList + return goodsList, "" } var lmData struct { Data struct { Orders []TikTokTeamOrderNew `json:"orders"` + Cursor string `json:"cursor"` } `json:"data"` } err = json.Unmarshal([]byte(send), &lmData) if err != nil { - return goodsList + return goodsList, "" } goodsList = &lmData.Data.Orders - return goodsList + return goodsList, lmData.Data.Cursor }