简要描述:
-获取分类列表
请求URL:
&route=plugin.shop-assistant.frontend.category.detail
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
id | int | 是 | 分类ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"id": 1,
"uniacid": 1,
"name": "1",
"thumb": "images/1/2019/12/oleLBE9pWkxb4BLRXBhBzHZpbt9txC.jpg",
"parent_id": 0,
"description": "",
"display_order": 0,
"enabled": 1,
"is_home": 1,
"adv_img": "",
"adv_url": "",
"level": 1,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2019-04-16 10:17:21",
"updated_at": "2021-01-28 16:06:44",
"deleted_at": null,
"plugin_id": 0,
"filter_ids": "1",
"small_adv_url": null,
"pc_adv_img": "newimage/03aae73a90bd72dae0e896b8157ccfc2.jpg",
"pc_adv_url": "12321321321",
"url": "http://yzmall.com/addons/yun_shop/?menu#/catelist/1?i=1",
"procedures_url": "/packageB/member/category/catelist/catelist?id=1"
}
}
参数说明:分类数据
参数名 | 类型 | 说明 | |
---|---|---|---|
id | int | 分类ID | |
name | string | 分类名 | |
parent_id | int | 上级ID | |
enabled | int | 是否显示:0否1是 | |
is_home | int | 是否推荐:0否1是 | |
display_order | int | 排序 | |
thumb | string | 分类图片(thumb_src绝对地址) |
错误时返回:
{
"result": 0,
"msg": "请登录",
"data": []
}