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