Browse Source

抖音本地

master
huangjiajun 5 months ago
parent
commit
fe0fc32578
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tik_tok/csjp_life.go

+ 3
- 2
tik_tok/csjp_life.go View File

@@ -114,7 +114,7 @@ func CsjpLifeGetCommand(args map[string]string) (map[string]string, error) {
} }


//4.3 订单接口 //4.3 订单接口
func CsjpLifeGetOrder(args map[string]string) (*[]csjp.CsjpOrder, int64) {
func CsjpLifeGetOrder(args map[string]string) (*[]csjp.CsjpOrder, int64, bool) {
params := map[string]interface{}{ params := map[string]interface{}{
"count": zhios_third_party_utils.StrToInt(args["count"]), "count": zhios_third_party_utils.StrToInt(args["count"]),
} }
@@ -136,5 +136,6 @@ func CsjpLifeGetOrder(args map[string]string) (*[]csjp.CsjpOrder, int64) {
data := gjson.Get(send, "data.order_list").String() data := gjson.Get(send, "data.order_list").String()
list := make([]csjp.CsjpOrder, 0) list := make([]csjp.CsjpOrder, 0)
json.Unmarshal([]byte(data), &list) json.Unmarshal([]byte(data), &list)
return &list, cursor
hasMore := gjson.Get(send, "data.has_more").Bool()
return &list, cursor, hasMore
} }

Loading…
Cancel
Save