From 6eb7e7d5c6bbbb9b2310e210b7d262311875a8e6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 16 Oct 2023 12:45:42 +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, 2 insertions(+), 2 deletions(-) diff --git a/tik_tok/svc_tik_tok_goods.go b/tik_tok/svc_tik_tok_goods.go index 9500847..15cf9b5 100644 --- a/tik_tok/svc_tik_tok_goods.go +++ b/tik_tok/svc_tik_tok_goods.go @@ -207,8 +207,8 @@ func GetKlGoodsNew(args map[string]string) TikTokGoods { params := map[string]interface{}{"command": content} send, err := Send(args["appkey"], args["appSecret"], "buyin.doukeCommandParseAndShare", params, args["acctoken"]) var goodsList = TikTokGoods{} - commandType := gjson.Get(send, "data.command_type").Int() - if commandType == 4 { + ActivityId := gjson.Get(send, "data.command_info.activity_info.material_id").Int() + if ActivityId > 0 { goodsList.ActivityId = zhios_third_party_utils.Int64ToStr(gjson.Get(send, "data.command_info.activity_info.material_id").Int()) return goodsList }