diff --git a/tik_tok/svc_tik_tok_team.go b/tik_tok/svc_tik_tok_team.go index 6e69024..eec405f 100644 --- a/tik_tok/svc_tik_tok_team.go +++ b/tik_tok/svc_tik_tok_team.go @@ -37,17 +37,21 @@ func Activity(args map[string]string) []TikTokActivity { } func ActivityProduct(args map[string]string) []TikTokGoods { //args = map[string]string{ - // "appkey": "7136155008692651560", - // "appSecret": "b132549f-f62c-491e-86f1-89af3658896a", - // "activity_id": "437153", - // "search_type": "0", - // "sort_type": "1", - // "page": "1", - // "count": "20", - // "status": "1", - // "acctoken": "ff1a797c-a088-47bf-8c31-9784fa630c5e", + // "appkey": "7136155008692651560", + // "appSecret": "b132549f-f62c-491e-86f1-89af3658896a", + // "activity_id": "437153", + // "search_type": "0", + // "sort_type": "1", + // "page": "1", + // "count": "1", + // "product_info": "3570614033394612291", + // "status": "1", + // "acctoken": "ff1a797c-a088-47bf-8c31-9784fa630c5e", //} params := map[string]interface{}{"status": args["status"], "activity_id": args["activity_id"], "search_type": args["search_type"], "sort_type": args["sort_type"], "page": args["page"], "count": args["count"]} + if args["product_info"] != "" { + params["product_info"] = args["product_info"] + } send, err := Send(args["appkey"], args["appSecret"], "alliance.colonelActivityProduct", params, args["acctoken"]) fmt.Println(send) fmt.Println(err)