diff --git a/tik_tok/csjp_life.go b/tik_tok/csjp_life.go index 29aa687..ca8c3f0 100644 --- a/tik_tok/csjp_life.go +++ b/tik_tok/csjp_life.go @@ -9,7 +9,7 @@ import ( ) //4.2.1 商品列表接口 -func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64) { +func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64, bool) { params := map[string]interface{}{ "count": zhios_third_party_utils.StrToInt(args["count"]), } @@ -44,9 +44,10 @@ func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64) { fmt.Println(send) cursor := gjson.Get(send, "data.cursor").Int() data := gjson.Get(send, "data.product_list").String() + hasMore := gjson.Get(send, "data.has_more").Bool() list := make([]csjp.CsjpProductList, 0) json.Unmarshal([]byte(data), &list) - return &list, cursor + return &list, cursor, hasMore } //4.2.2 商品详情接口