获取店铺经营类目
URL地址 | http://www.tpshop.com/index.php/api/goods/goodsCategoryList |
请求方式 | get |
参数列表
参数 | 是否必须 | 说明 |
user_id | 必须 | 用户id |
token | 必须 | token |
parent_id | 非必选 | 经营类目父级id |
示例
成功示例 { "status": 1, "msg": "获取成功", "result": [ { "id": 135, "name": "图书\/音像\/电子书", "mobile_name": "图书音像", "parent_id": 0, "parent_id_path": "0_135", "level": 1, "sort_order": 2, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 6, "commission": 2, "commission_rate": 0, "type_id": 0, "ishavesub": 2, "ishavesub2": 3 }, { "id": 1, "name": "手机\/运营商\/数码", "mobile_name": "手机数码", "parent_id": 0, "parent_id_path": "0_1", "level": 1, "sort_order": 1, "is_show": 1, "image": "\/public\/upload\/category\/2018\/02-28\/b74dd5eb22f5708ece7782ba20dbf103.jpg", "is_hot": 0, "cat_group": 0, "commission": 2, "commission_rate": 0, "type_id": 2, "ishavesub": 4, "ishavesub2": 49 }, { "id": 174, "name": "店装", "mobile_name": "美甲店装", "parent_id": 0, "parent_id_path": "0_174", "level": 1, "sort_order": 1, "is_show": 1, "image": "\/public\/upload\/category\/2018\/03-16\/1fc367d3e531cb13fabe97c16f7f90c2.jpg", "is_hot": 0, "cat_group": 1, "commission": 0, "commission_rate": 0, "type_id": 0, "ishavesub": 0, "ishavesub2": 2 }, { "id": 67, "name": "电脑\/办公", "mobile_name": "电脑办公", "parent_id": 0, "parent_id_path": "0_67", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 3, "commission_rate": 0, "type_id": 4, "ishavesub": 3, "ishavesub2": 15 }, { "id": 81, "name": "家居\/家具\/家装\/厨具", "mobile_name": "家私家具", "parent_id": 0, "parent_id_path": "0_81", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 2, "commission_rate": 0, "type_id": 0, "ishavesub": 0, "ishavesub2": 0 }, { "id": 82, "name": "美妆个护\/保健品", "mobile_name": "美妆个护", "parent_id": 0, "parent_id_path": "0_82", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 3, "ishavesub": 2, "ishavesub2": 3 }, { "id": 83, "name": "男鞋\/运动\/户外", "mobile_name": "运动户外", "parent_id": 0, "parent_id_path": "0_83", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 9, "ishavesub": 2, "ishavesub2": 7 }, { "id": 84, "name": "食品\/酒类\/生鲜\/特产", "mobile_name": "食品特产", "parent_id": 0, "parent_id_path": "0_84", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 0, "ishavesub": 2, "ishavesub2": 2 }, { "id": 86, "name": "家用电器", "mobile_name": "家用电器", "parent_id": 0, "parent_id_path": "0_86", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 0, "ishavesub": 7, "ishavesub2": 6 }, { "id": 148, "name": "配饰相关", "mobile_name": "配饰相关", "parent_id": 0, "parent_id_path": "0_148", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 0, "ishavesub": 0, "ishavesub2": 0 }, { "id": 149, "name": "虚拟商品", "mobile_name": "虚拟商品", "parent_id": 0, "parent_id_path": "0_149", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 7, "ishavesub": 1, "ishavesub2": 1 }, { "id": 166, "name": " 医药保健 \/计生情趣 ", "mobile_name": " 医药情趣 ", "parent_id": 0, "parent_id_path": "0_166", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 8, "ishavesub": 1, "ishavesub2": 4 }, { "id": 182, "name": "水果", "mobile_name": "水果", "parent_id": 0, "parent_id_path": "0_182", "level": 1, "sort_order": 0, "is_show": 1, "image": "", "is_hot": 0, "cat_group": 0, "commission": 0, "commission_rate": 0, "type_id": 0, "ishavesub": 0, "ishavesub2": 0 } ] }
TPshop1.2.8版本起,登录后的所有操作加了token参数验证,并且可以在BaseController设置token超时时间, token 为登录后存储起来的 一个唯一标识 ,类似于PC端的 session_id