作者 liyuhang

gx

@@ -19,7 +19,8 @@ class BlogCategoryController extends BaseController @@ -19,7 +19,8 @@ class BlogCategoryController extends BaseController
19 public function lists(BlogCategoryModel $blogCategoryModel){ 19 public function lists(BlogCategoryModel $blogCategoryModel){
20 //搜索条件 20 //搜索条件
21 $this->map['project_id'] = $this->user['project_id']; 21 $this->map['project_id'] = $this->user['project_id'];
22 - $lists = $blogCategoryModel->lists($this->map,$this->page,$this->row); 22 + $lists = $blogCategoryModel->lists($this->map,$this->page,$this->row,$this->order,
  23 + ['id','pid','name','status','sort','remark']);
23 $this->response('success',Code::SUCCESS,$lists); 24 $this->response('success',Code::SUCCESS,$lists);
24 } 25 }
25 26
@@ -20,7 +20,7 @@ class NewsCategoryController extends BaseController @@ -20,7 +20,7 @@ class NewsCategoryController extends BaseController
20 public function lists(NewsCategoryModel $newsCategory){ 20 public function lists(NewsCategoryModel $newsCategory){
21 //搜索条件 21 //搜索条件
22 $this->map['project_id'] = $this->user['project_id']; 22 $this->map['project_id'] = $this->user['project_id'];
23 - $lists = $newsCategory->lists($this->map,$this->page,$this->row,'sort'); 23 + $lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order,['id','pid','name','status','sort','remark']);
24 $this->response('success',Code::SUCCESS,$lists); 24 $this->response('success',Code::SUCCESS,$lists);
25 } 25 }
26 26