huangjiajun pirms 1 gada
vecāks
revīzija
b1f6ac1e56
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. +4
    -3
      tik_tok/svc_tik_tok_team.go

+ 4
- 3
tik_tok/svc_tik_tok_team.go Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt