作者 lyh

gx

@@ -32,8 +32,8 @@ class CategoryController extends BaseController @@ -32,8 +32,8 @@ class CategoryController extends BaseController
32 public function index(Category $category) 32 public function index(Category $category)
33 { 33 {
34 $this->map = $this->searchParam(); 34 $this->map = $this->searchParam();
35 - $filed = ['id', 'project_id', 'pid', 'title', 'image', 'route','keywords', 'describe', 'status','created_at'];  
36 - $list = $category->list($this->map,'id',$filed); 35 + $filed = ['id', 'project_id', 'pid', 'title', 'image', 'route','keywords', 'describe', 'status','created_at','sort'];
  36 + $list = $category->list($this->map,['sort','id'],$filed);
37 $data = []; 37 $data = [];
38 if(!empty($list)){ 38 if(!empty($list)){
39 foreach ($list as $k =>$v){ 39 foreach ($list as $k =>$v){