作者 lyh

gx

... ... @@ -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();
}
... ...
... ... @@ -35,8 +35,8 @@ class NavLogic extends BaseLogic
*/
public function navSave()
{
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
if(!empty($this->param['location'])){
if($this->param['location'] == 'header'){
$this->param['group_id'] = BNavGroup::DEFAULT_HEADER_ID;
... ... @@ -54,11 +54,11 @@ class NavLogic extends BaseLogic
$this->param['project_id'] = $this->user['project_id'];
$this->model->add($this->param);
}
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('error');
}
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('error');
// }
//编辑菜单后,通知更新
$this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_NAV, 'route'=>'all']);
return $this->success();
... ...