简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/addons/yun_shop/api.php?i=2&mid=null&type=5&route=home-page.get-page-goods
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
route | 是 | string | home-page.get-page-goods |
i | 是 | int | 公众号ID |
type | 是 | int | |
mid | 否 | int | 上线的uid |
group_id | 是 | string | 商品组id |
page | 是 | int | 页数 |
返回示例:
开启"店铺装修"插件并且"启用装修页面"时返回:
HTTP/1.0 200 OK Cache-Control: no-cache Content-Type: application/json {"total":31,"per_page":20,"current_page":1,"last_page":2,"next_page_url":"http:\/\/www.wq.com\/addons\/yun_shop\/api.php?page=2","prev_page_url":null,"from":1,"to":20,"data":[{"id":"G1544064718605","img":"https:\/\/www.wq.com\/attachment\/images\/2\/2018\/10\/j2zia25laNyckifAIT1nIyIiTiiVIC.jpg","goodid":272,"name":"\u6392\u961f\u5956\u52b12","priceold":"0.00","pricenow":"1000.00","stock":100},{"id":"G1544064710687","img":"http:\/\/dev4.yunzshop.com\/attachment\/images\/2\/2017\/07\/qQVX3PmQZpQe1CDuAC13kA0pmql6MP.jpg","goodid":91,"name":"\u7231\u5fc3\u503c\u6d4b\u8bd5","priceold":"200.00","pricenow":"100.00","stock":74},{"id":"G1544064710429","img":"http:\/\/dev4.yunzshop.com\/attachment\/images\/2\/2017\/08\/DX6y4X7cwAjXCz9wZjclJVjjx6j6d7.jpg","goodid":90,"name":"\u533a\u57df-\u56e2\u961f\u5206\u7ea2\u6d4b\u8bd5","priceold":"100.00","pricenow":"100.00","stock":956},{"id":"G1544064710140","img":"http:\/\/dev4.yunzshop.com\/attachment\/images\/2\/2017\/08\/e83b7K73WY8l53K58ppTY76IBitw8r.jpg","goodid":89,"name":"\u591a\u89c4\u683c\u5546\u54c1","priceold":"10.00","pricenow":"100.00","stock":100}],"Identification":0}
未安装或者关闭"店铺装修"插件时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
total | 商品条数 | |
per_page | 按多少条商品分页 | |
current_page | 当前页 | |
last_page | 最后一页 | |
next_page_url | 下一页连接 | |
data | 商品信息 | |
Identification | int | 返回状态,该商品组是否在底部:(状态:1为底部商品组,0为不是底部商品组) |