正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -110,8 +110,8 @@ class CategoryLogic extends BaseLogic | @@ -110,8 +110,8 @@ class CategoryLogic extends BaseLogic | ||
| 110 | * @time :2023/8/21 17:14 | 110 | * @time :2023/8/21 17:14 |
| 111 | */ | 111 | */ |
| 112 | public function categorySave(){ | 112 | public function categorySave(){ |
| 113 | - DB::beginTransaction(); | ||
| 114 | - try { | 113 | +// DB::beginTransaction(); |
| 114 | +// try { | ||
| 115 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 115 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 116 | //是否编辑路由 | 116 | //是否编辑路由 |
| 117 | $id = $this->editCategoryRoute($this->param['id'],$this->param['route']); | 117 | $id = $this->editCategoryRoute($this->param['id'],$this->param['route']); |
| @@ -128,11 +128,11 @@ class CategoryLogic extends BaseLogic | @@ -128,11 +128,11 @@ class CategoryLogic extends BaseLogic | ||
| 128 | $this->edit(['route'=>$route],['id'=>$id]); | 128 | $this->edit(['route'=>$route],['id'=>$id]); |
| 129 | //清除缓存 | 129 | //清除缓存 |
| 130 | Common::del_user_cache('product_category',$this->user['project_id']); | 130 | Common::del_user_cache('product_category',$this->user['project_id']); |
| 131 | - DB::commit(); | ||
| 132 | - } catch (\Exception $e){ | ||
| 133 | - DB::rollBack(); | ||
| 134 | - $this->fail('系统错误,请联系管理员'); | ||
| 135 | - } | 131 | +// DB::commit(); |
| 132 | +// } catch (\Exception $e){ | ||
| 133 | +// DB::rollBack(); | ||
| 134 | +// $this->fail('系统错误,请联系管理员'); | ||
| 135 | +// } | ||
| 136 | //通知更新 | 136 | //通知更新 |
| 137 | $notifyData = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_CATE, 'route'=>$route]; | 137 | $notifyData = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_CATE, 'route'=>$route]; |
| 138 | $this->updateNotify($notifyData); | 138 | $this->updateNotify($notifyData); |
-
请 注册 或 登录 后发表评论