Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
b1f6ac1e56
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      tik_tok/svc_tik_tok_team.go

+ 4
- 3
tik_tok/svc_tik_tok_team.go View File

@@ -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
} }

Loading…
Cancel
Save