|
@@ -97,7 +97,7 @@ func ProductUrl(args map[string]string) map[string]string { |
|
|
return data |
|
|
return data |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func TeamOrder(args map[string]string) []TikTokTeamOrder { |
|
|
|
|
|
|
|
|
func TeamOrder(args map[string]string) *[]TikTokTeamOrder { |
|
|
params := map[string]interface{}{ |
|
|
params := map[string]interface{}{ |
|
|
"size": args["size"], |
|
|
"size": args["size"], |
|
|
"cursor": args["cursor"], |
|
|
"cursor": args["cursor"], |
|
@@ -106,7 +106,7 @@ func TeamOrder(args map[string]string) []TikTokTeamOrder { |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.instituteOrderColonel", params, args["acctoken"]) |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.instituteOrderColonel", params, args["acctoken"]) |
|
|
fmt.Println(send) |
|
|
fmt.Println(send) |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
var goodsList = make([]TikTokTeamOrder, 0) |
|
|
|
|
|
|
|
|
var goodsList *[]TikTokTeamOrder |
|
|
product := gjson.Get(send, "data").String() |
|
|
product := gjson.Get(send, "data").String() |
|
|
if err != nil || product == "" { |
|
|
if err != nil || product == "" { |
|
|
return goodsList |
|
|
return goodsList |
|
@@ -120,5 +120,6 @@ func TeamOrder(args map[string]string) []TikTokTeamOrder { |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
return lmData.Data.Orders |
|
|
|
|
|
|
|
|
goodsList = &lmData.Data.Orders |
|
|
|
|
|
return goodsList |
|
|
} |
|
|
} |