简要描述:

  • 搜索过滤(商品标签)

请求URL:

GET/app/index.php?i=2&c=entry&do=shop&m=yun_shop&route=goods.filtering.index

参数:

参数名 是否必须 类型 说明
category int 分类id

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "获取过滤数据", 
    "data": [
        {
            "id": 1, 
            "uniacid": 6, 
            "name": "年龄", 
            "parent_id": 0, 
            "is_show": 0, 
            "updated_at": "2018-03-29 16:18:11", 
            "created_at": "2018-03-27 15:03:02", 
            "value": [
                {
                    "id": 5, 
                    "parent_id": 1, 
                    "name": "6~8岁"
                }, 
                {
                    "id": 3, 
                    "parent_id": 1, 
                    "name": "1~3岁"
                }, 
                {
                    "id": 6, 
                    "parent_id": 1, 
                    "name": "10~12岁"
                }
            ]
        }, 
        {
            "id": 2, 
            "uniacid": 6, 
            "name": "哈哈哈", 
            "parent_id": 0, 
            "is_show": 0, 
            "updated_at": "2018-03-29 16:21:55", 
            "created_at": "2018-03-28 09:51:13", 
            "value": [
                {
                    "id": 7, 
                    "parent_id": 2, 
                    "name": "小哈"
                }, 
                {
                    "id": 8, 
                    "parent_id": 2, 
                    "name": "大哈"
                }, 
                {
                    "id": 9, 
                    "parent_id": 2, 
                    "name": "中哈"
                }, 
                {
                    "id": 10, 
                    "parent_id": 2, 
                    "name": "巨哈"
                }
            ]
        }, 
        {
            "id": 11, 
            "uniacid": 6, 
            "name": "阿萨啊", 
            "parent_id": 0, 
            "is_show": 0, 
            "updated_at": "2018-03-30 14:46:16", 
            "created_at": "2018-03-30 14:46:16", 
            "value": [ ]
        }
    ]
}

错误时返回:


返回参数说明:

参数名 类型 说明
id int 过滤id
name string 过滤名称
parent_id int 所属过滤组id
value array 过滤值

备注:

  • 更多返回错误代码请看首页的错误代码描述