简要描述:
- 区域代理信息接口
请求域名:
请求URL:
POST: route=plugin.micro.frontend.controllers.MicroShop.category.getCategory
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 公众号ID |
parent_id | 否 | int | 分类id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取分类数据成功!",
"data": {
"total": 2,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"id": 1,
"uniacid": 2,
"name": "母婴",
"thumb": "",
"parent_id": 0,
"description": "",
"display_order": 7,
"enabled": 1,
"is_home": 1,
"adv_img": "",
"adv_url": "",
"level": 1,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
},
{
"id": 3,
"uniacid": 2,
"name": "yitian_1",
"thumb": "",
"parent_id": 0,
"description": "",
"display_order": 6,
"enabled": 1,
"is_home": 0,
"adv_img": "http://sp.com/attachment/images/2/2016/08/SO5AdAZ96AG3A0gmS8fRW8I3g38iI3.jpg",
"adv_url": "",
"level": 1,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
}
],
"set": {
"cat_level": "2",
"cat_adv_img": "",
"cat_adv_url": ""
}
}
}
错误时返回:
返回参数说明:
|参数名|类型|说明|
备注:
- 更多返回错误代码请看首页的错误代码描述