|
|
@@ -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 商品详情接口 |
|
|
|