💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* 一级分类接口 ~~~[api] get:/index.php?ctl=Goods_Cat&met=cat&typ=json&cat_parent_id=0 *int:cat_parent_id=默认值#分类父级id <<< success {"cmd_id":-140, "status":200, "msg":"success", "data":{"items":[ { "cat_id":"1", "cat_name":"\u670d\u88c5\u978b\u5e3d", "cat_parent_id":"0", "cat_pic":"***/20171031\/1509430424912695.jpg", "type_id":"0", "cat_commission":"3", "cat_is_wholesale":"0", "cat_is_virtual":"0", "cat_templates":"0", "cat_displayorder":"0", "cat_level":2, "cat_show_type":"0", "id":"1", "parent_id":"0", "type_number":"trade", "name":"\u670d\u88c5\u978b\u5e3d", "level":2, "cat_icon":"ui-icon-star", "expanded":true, "loaded":true, "is_leaf":true } ] } } <<< error {"cmd_id":-140,"status":200,"msg":"success","data":{"items":[]}} ~~~ * 默认二级分类接口 ~~~[api] get:/index.php?ctl=Goods_Brand&met=lists&typ=json <<< success { "cmd_id":-140, "status":200, "msg":"success", "data":{ "page":1, "total":1, "totalsize":"12", "records":"12", "items":[ { "brand_id":"1", "brand_name":"\u97e9\u90fd\u8863\u820d", "brand_name_cn":"", "cat_id":"2", "brand_initial":"H", "brand_show_type":"0", "brand_pic":"****1497851550726555.jpg", "brand_displayorder":"0", "brand_enable":"1", "brand_recommend":"1", "shop_id":"0", "brand_collect":"0", "id":"1" } ] } } <<< error ~~~ * 点击一级分类获对应的二级分类数据 ~~~[api] get:/index.php?ctl=Goods_Cat&met=tree&typ=json&cat_parent_id=cat_parent_id *int:cat_parent_id=默认值#分类父级id <<< success { "cmd_id":-140, "status":200, "msg":"success", "data":{"items":[ { "cat_id":"2", "cat_name":"\u670d\u9970\u8863\u5e3d", "child":[ { "cat_id":"3","cat_name":"\u5973\u88c5\u670d\u9970", "cat_parent_id":"2", "cat_pic":"***/1495696823535239.jpg", "type_id":"1", "cat_commission":"1", "cat_is_wholesale":"0", "cat_is_virtual":"1", "cat_templates":"0", "cat_displayorder":"0", "cat_level":"0", "cat_show_type":"0", "id":"3" }, ] } ] } } <<< error {"cmd_id":-140,"status":200,"msg":"success","data":{"items":[]}} ~~~