|
@@ -103,11 +103,17 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64, string) { |
|
|
params["cursor"] = args["cursor"] |
|
|
params["cursor"] = args["cursor"] |
|
|
} |
|
|
} |
|
|
send, err := Send(args["appkey"], args["appSecret"], "alliance.colonelActivityProduct", params, args["acctoken"]) |
|
|
send, err := Send(args["appkey"], args["appSecret"], "alliance.colonelActivityProduct", params, args["acctoken"]) |
|
|
|
|
|
|
|
|
fmt.Println(send) |
|
|
fmt.Println(send) |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
var goodsList = make([]TikTokGoods, 0) |
|
|
var goodsList = make([]TikTokGoods, 0) |
|
|
product := gjson.Get(send, "data.data").String() |
|
|
product := gjson.Get(send, "data.data").String() |
|
|
if err != nil || product == "" { |
|
|
if err != nil || product == "" { |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeam", "args:"+zhios_third_party_utils.SerializeStr(args)) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeam", "err:"+err.Error()) |
|
|
|
|
|
} |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeam", "send:"+send) |
|
|
return goodsList, 0, "" |
|
|
return goodsList, 0, "" |
|
|
} |
|
|
} |
|
|
var lmData struct { |
|
|
var lmData struct { |
|
@@ -119,6 +125,9 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64, string) { |
|
|
} |
|
|
} |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeamJson", "args:"+zhios_third_party_utils.SerializeStr(args)) |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeamJson", "err:"+err.Error()) |
|
|
|
|
|
zhios_third_party_utils.FilePutContents("tikTokTeamJson", "send:"+send) |
|
|
return goodsList, 0, "" |
|
|
return goodsList, 0, "" |
|
|
} |
|
|
} |
|
|
for _, v := range lmData.Data.Data { |
|
|
for _, v := range lmData.Data.Data { |
|
|