正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -26,7 +26,7 @@ class BlogController extends BaseController | @@ -26,7 +26,7 @@ class BlogController extends BaseController | ||
| 26 | public function lists(BlogModel $blogModel,BlogCategoryLogic $blogCategoryLogic,BlogLabelLogic $blogLabelLogic){ | 26 | public function lists(BlogModel $blogModel,BlogCategoryLogic $blogCategoryLogic,BlogLabelLogic $blogLabelLogic){ |
| 27 | //搜索条件 | 27 | //搜索条件 |
| 28 | $this->map['project_id'] = $this->user['project_id']; | 28 | $this->map['project_id'] = $this->user['project_id']; |
| 29 | - $lists = $blogModel->lists($this->map,$this->page,$this->row,$this->order, | 29 | + $lists = $blogModel->lists($this->map,$this->page,$this->row,$this->order = 'sort', |
| 30 | ['id','category_id','operator_id','status','created_at','label_id','image','updated_at','name','sort','url']); | 30 | ['id','category_id','operator_id','status','created_at','label_id','image','updated_at','name','sort','url']); |
| 31 | if(!empty($lists['list'])){ | 31 | if(!empty($lists['list'])){ |
| 32 | foreach ($lists['list'] as $k => $v){ | 32 | foreach ($lists['list'] as $k => $v){ |
-
请 注册 或 登录 后发表评论