|
@@ -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();
|