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