瀏覽代碼

更新

master
huangjiajun 1 年之前
父節點
當前提交
b1f6ac1e56
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      tik_tok/svc_tik_tok_team.go

+ 4
- 3
tik_tok/svc_tik_tok_team.go 查看文件

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

Loading…
取消
儲存