where('s_id', 0)->where('type','1')->select(); $this->success('',$groupList); } public function listCategory(){ $param= $this->request->param(); $caModel = new Category(); $res = $caModel->where('s_id',$param['sid'])->where('type','1')->select(); $this->success('分类列表',['type'=>'category','data'=>$res]); } public function listFile(){ $param= $this->request->param(); $fModel = new File(); $res = $fModel->where('category_id',$param['sid'])->select(); $this->success('文件列表',['type'=>'file','data'=>$res]); } }