From b6e53af2f2192d632616a159507e5b2c5f216374 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 15 Mar 2023 14:43:01 +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_goods.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tik_tok/svc_tik_tok_goods.go b/tik_tok/svc_tik_tok_goods.go index f2a5665..79aa222 100644 --- a/tik_tok/svc_tik_tok_goods.go +++ b/tik_tok/svc_tik_tok_goods.go @@ -3,6 +3,7 @@ package tik_tok import ( zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" "encoding/json" + "fmt" "github.com/syyongx/php2go" "github.com/tidwall/gjson" "strings" @@ -58,6 +59,7 @@ func GoodsList(args map[string]string) []TikTokGoods { } send, err := Send(args["appkey"], args["appSecret"], "alliance.materialsProductsSearch", params, args["acctoken"]) var goodsList = make([]TikTokGoods, 0) + fmt.Println("抖音商品", args, send, err) product := gjson.Get(send, "data.products").String() if err != nil || product == "" { return goodsList @@ -69,6 +71,8 @@ func GoodsList(args map[string]string) []TikTokGoods { } err = json.Unmarshal([]byte(send), &lmData) if err != nil { + fmt.Println("抖音商品1", err) + return goodsList } for _, v := range lmData.Data.Products {