作者 lyh

gx

... ... @@ -21,7 +21,7 @@ class BlogCategoryController extends BaseController
//搜索条件
$this->map['project_id'] = $this->user['project_id'];
$filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at'];
$lists = $blogCategoryModel->list($this->map,$this->order,$filed);
$lists = $blogCategoryModel->list($this->map,$this->order = ['sort','id'],$filed);
$data = [];
if(!empty($lists)){
$blogModel = new BlogModel();
... ...
... ... @@ -21,7 +21,7 @@ class NewsCategoryController extends BaseController
//搜索条件
$this->map['project_id'] = $this->user['project_id'];
$filed = ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at'];
$lists = $newsCategory->list($this->map,$this->order,$filed);
$lists = $newsCategory->list($this->map,$this->order = ['sort','id'],$filed);
$data = [];
if(!empty($lists)){
$newsModel = new NewsModel();
... ...
... ... @@ -120,7 +120,7 @@ class ProjectLogic extends BaseLogic
DB::rollBack();
$this->fail('请填写完整后再提交');
}
app(SyncService::class)->projectAcceptAddress($this->param['id']);
(new SyncService())->projectAcceptAddress($this->param['id']);
return $this->success();
}
... ...