获取第二三级分类
URL地址 | http://www.tpshop.com/index.php?m=Api&c=Goods&a=goodsSecAndThirdCategoryList |
请求方式 | post |
参数列表
参数 | 是否必须 | 说明 |
parent_id | 必须 | 父id, 此时传一级分类ID |
/*
成功示例
{
"status":1,
"msg":"获取成功",
"result":[
{
"mobile_name":"生活电器",
"image":"/Public/upload/category/2016/04-02/56ffa28b12f4f.jpg",
"id":19,
"level":2,
"parent_id":2,
"sub_category":[
{
"mobile_name":"录音机",
"image":"/public/upload/category/2017/05-27/c268a3e41fe2c820cabcc59e0bbc08b7.jpg",
"id":125,
"level":3,
"parent_id":19
},
{
"mobile_name":"饮水机",
"image":"/public/upload/category/2017/05-27/3095dbf59a5a4086c6121a646190ff8f.jpg",
"id":126,
"level":3,
"parent_id":19
},
{
"mobile_name":"烫衣机",
"image":"/public/upload/category/2017/05-27/482e435874e958a3cd029e89084abf4a.jpg",
"id":127,
"level":3,
"parent_id":19
},
{
"mobile_name":"电风扇",
"image":"/public/upload/category/2017/05-27/f051a6ae1fa7eac3dfadda42a4f330dd.jpg",
"id":128,
"level":3,
"parent_id":19
},
{
"mobile_name":"电话机",
"image":"/public/upload/category/2017/05-27/919951c104437bb017a561b22195a1be.jpg",
"id":129,
"level":3,
"parent_id":19
}
]
},
{
"mobile_name":"大家电",
"image":"/Public/upload/category/2016/04-02/56ffa28b12f4f.jpg",
"id":20,
"level":2,
"parent_id":2,
"sub_category":[
{
"mobile_name":"电视",
"image":"/public/upload/category/2017/05-27/7f8452d85ea8edbfdc4698ca3f7ff4f4.jpg",
"id":130,
"level":3,
"parent_id":20
},
{
"mobile_name":"冰箱",
"image":"/public/upload/category/2017/05-27/ab31d6682c81c6211bb8f1308d32ea58.jpg",
"id":131,
"level":3,
"parent_id":20
},
{
"mobile_name":"空调",
"image":"/public/upload/category/2017/05-27/433b4b4d10f3736d1853f7ccf12059c4.jpg",
"id":132,
"level":3,
"parent_id":20
},
{
"mobile_name":"洗衣机",
"image":"/public/upload/category/2017/05-27/d8d2308b318d7fdd61560e59a3493e19.jpg",
"id":133,
"level":3,
"parent_id":20
},
{
"mobile_name":"热水器",
"image":"/public/upload/category/2017/05-27/899cf04d7849cefc35c2c04dac9a99cf.jpg",
"id":134,
"level":3,
"parent_id":20
}
]
},
]
}
失败示例
{
"status": "error",
"msg": "获取商品分类失败!"
}
*/