作者 lyh

gx

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