|
@@ -185,7 +185,7 @@ func TeamOrder(args map[string]string) *[]TikTokTeamOrder { |
|
|
goodsList = &lmData.Data.Orders |
|
|
goodsList = &lmData.Data.Orders |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
func TeamOrderNew(args map[string]string) *[]TikTokTeamOrderNew { |
|
|
|
|
|
|
|
|
func TeamOrderNew(args map[string]string) (*[]TikTokTeamOrderNew, string) { |
|
|
params := map[string]interface{}{ |
|
|
params := map[string]interface{}{ |
|
|
"size": args["size"], |
|
|
"size": args["size"], |
|
|
"cursor": args["cursor"], |
|
|
"cursor": args["cursor"], |
|
@@ -197,17 +197,18 @@ func TeamOrderNew(args map[string]string) *[]TikTokTeamOrderNew { |
|
|
var goodsList *[]TikTokTeamOrderNew |
|
|
var goodsList *[]TikTokTeamOrderNew |
|
|
product := gjson.Get(send, "data").String() |
|
|
product := gjson.Get(send, "data").String() |
|
|
if err != nil || product == "" { |
|
|
if err != nil || product == "" { |
|
|
return goodsList |
|
|
|
|
|
|
|
|
return goodsList, "" |
|
|
} |
|
|
} |
|
|
var lmData struct { |
|
|
var lmData struct { |
|
|
Data struct { |
|
|
Data struct { |
|
|
Orders []TikTokTeamOrderNew `json:"orders"` |
|
|
Orders []TikTokTeamOrderNew `json:"orders"` |
|
|
|
|
|
Cursor string `json:"cursor"` |
|
|
} `json:"data"` |
|
|
} `json:"data"` |
|
|
} |
|
|
} |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return goodsList |
|
|
|
|
|
|
|
|
return goodsList, "" |
|
|
} |
|
|
} |
|
|
goodsList = &lmData.Data.Orders |
|
|
goodsList = &lmData.Data.Orders |
|
|
return goodsList |
|
|
|
|
|
|
|
|
return goodsList, lmData.Data.Cursor |
|
|
} |
|
|
} |