正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论