ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获得某个id下的child /** * 获得某个id下的child * @http_method get * @param id 父级id * @author 孙泉 * @return array */ +++ get:/Goodscategory/customChildAll <<< success { "errcode": 0, "errmsg": "操作成功", "list": [ { "id": 21, "title": "厨卫", "pid": 2, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 1, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20161214/12886148170542912886.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ { "id": 618, "title": "厨卫挂件", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/79601148764599779601.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 617, "title": "浴霸/换气扇", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/69924148764595169924.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 616, "title": "智能马桶盖", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/46180148764589346180.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 615, "title": "马桶", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/28783148764586528783.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 614, "title": "浴缸", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/91021148764578491021.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 613, "title": "沐浴房", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/29687148764609029687.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 454, "title": "沐浴桶", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/36265148764584036265.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 453, "title": "水槽/龙头", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/86841148764573786841.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 452, "title": "淋浴花洒", "pid": 21, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/14542148764571814542.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] } ] }, { "id": 17, "title": "灯具", "pid": 2, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 2, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/99313148764526999313.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 10, "ad_position_id": 0, "banner": "", "_child": [ { "id": 624, "title": "LED灯泡", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/16567148764558516567.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 623, "title": "节能灯泡", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/80688148764556580688.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 622, "title": "筒灯/射灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/73448148764551873448.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 621, "title": "室外/庭院灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/56334148764540356334.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 620, "title": "落地灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/41269148764532841269.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 619, "title": "壁灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/23543148764529623543.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 29, "title": "吊灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/53563148764561053563.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 6, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 28, "title": "吸顶灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/14202148764563314202.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 27, "title": "台灯", "pid": 17, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/91375148764565791375.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] } ] }, { "id": 599, "title": "家装主材", "pid": 2, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 3, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/99934148764499299934.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ { "id": 612, "title": "涂刷辅料", "pid": 599, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/24795148764498224795.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 611, "title": "壁纸", "pid": 599, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/17630148764523217630.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 610, "title": "油漆涂料", "pid": 599, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/60732148764518460732.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 609, "title": "地板", "pid": 599, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/29047148764548329047.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 608, "title": "瓷砖", "pid": 599, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/50819148764501850819.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] } ] }, { "id": 597, "title": "五金电工", "pid": 2, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 4, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/25941148764463425941.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ { "id": 607, "title": "配电箱/断路器", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/68601148764483668601.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 606, "title": "监控安防", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/71432148764481171432.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 605, "title": "门铃", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/22414148764479322414.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 604, "title": "测量工具", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/15614148764476715614.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 603, "title": "手动工具", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/12276148764473912276.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 602, "title": "电动工具", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/51778148764471651778.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 601, "title": "锁具", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/70128148764469270128.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] }, { "id": 600, "title": "开关插座", "pid": 597, "keywords": "", "description": "", "show_in_nav": 0, "grade": "", "status": 1, "sort": 999, "img": "http://mojishop.img-cn-beijing.aliyuncs.com/mojishop/20170221/89329148764466589329.jpg", "url": "", "level": 0, "admin_open": 0, "type_id": 0, "ad_position_id": 0, "banner": "", "_child": [ ] } ] } ] } <<< error 这里填写错误的返回码 以此类推,每个状态使用 <<< 分割, 第一行添加状态名称 +++