|
|
@@ -33,7 +33,29 @@ func Activity(args map[string]string) []TikTokActivity { |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
return goodsList |
|
|
|
|
|
|
|
} |
|
|
|
func ColonelMultiParseActivityUrl(args map[string]string) map[string]TikTokActivityUrl { |
|
|
|
args = map[string]string{ |
|
|
|
"appkey": "7136155008692651560", |
|
|
|
"appSecret": "b132549f-f62c-491e-86f1-89af3658896a", |
|
|
|
"activity_url": "https://haohuo.jinritemai.com/views/product/detail?id=3566195499839129569&ins_activity_param=eNkdXXR", |
|
|
|
"acctoken": "4ecb8a39-f503-441d-b60e-d1b3da2dc57f", |
|
|
|
} |
|
|
|
params := map[string]interface{}{"activity_url": args["activity_url"]} |
|
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.colonelMultiParseActivityUrl", params, args["acctoken"]) |
|
|
|
var goodsList = make(map[string]TikTokActivityUrl) |
|
|
|
if err != nil { |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
product := gjson.Get(send, "data.results").String() |
|
|
|
if err != nil || product == "" { |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
err = json.Unmarshal([]byte(product), &goodsList) |
|
|
|
if err != nil { |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
func TrusteeshipProduct(args map[string]string) ([]TikTokGoods, int64) { |
|
|
|
//args = map[string]string{ |
|
|
|