正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -21,7 +21,7 @@ class BlogCategoryController extends BaseController | @@ -21,7 +21,7 @@ class BlogCategoryController extends BaseController | ||
| 21 | //搜索条件 | 21 | //搜索条件 |
| 22 | $this->map['project_id'] = $this->user['project_id']; | 22 | $this->map['project_id'] = $this->user['project_id']; |
| 23 | $filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']; | 23 | $filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']; |
| 24 | - $lists = $blogCategoryModel->list($this->map,$this->order,$filed); | 24 | + $lists = $blogCategoryModel->list($this->map,$this->order = ['sort','id'],$filed); |
| 25 | $data = []; | 25 | $data = []; |
| 26 | if(!empty($lists)){ | 26 | if(!empty($lists)){ |
| 27 | $blogModel = new BlogModel(); | 27 | $blogModel = new BlogModel(); |
| @@ -21,7 +21,7 @@ class NewsCategoryController extends BaseController | @@ -21,7 +21,7 @@ class NewsCategoryController extends BaseController | ||
| 21 | //搜索条件 | 21 | //搜索条件 |
| 22 | $this->map['project_id'] = $this->user['project_id']; | 22 | $this->map['project_id'] = $this->user['project_id']; |
| 23 | $filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']; | 23 | $filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']; |
| 24 | - $lists = $newsCategory->list($this->map,$this->order,$filed); | 24 | + $lists = $newsCategory->list($this->map,$this->order = ['sort','id'],$filed); |
| 25 | $data = []; | 25 | $data = []; |
| 26 | if(!empty($lists)){ | 26 | if(!empty($lists)){ |
| 27 | $newsModel = new NewsModel(); | 27 | $newsModel = new NewsModel(); |
| @@ -120,7 +120,7 @@ class ProjectLogic extends BaseLogic | @@ -120,7 +120,7 @@ class ProjectLogic extends BaseLogic | ||
| 120 | DB::rollBack(); | 120 | DB::rollBack(); |
| 121 | $this->fail('请填写完整后再提交'); | 121 | $this->fail('请填写完整后再提交'); |
| 122 | } | 122 | } |
| 123 | - app(SyncService::class)->projectAcceptAddress($this->param['id']); | 123 | + (new SyncService())->projectAcceptAddress($this->param['id']); |
| 124 | return $this->success(); | 124 | return $this->success(); |
| 125 | } | 125 | } |
| 126 | 126 |
-
请 注册 或 登录 后发表评论