正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -35,8 +35,8 @@ class ProductLogic extends BaseLogic | @@ -35,8 +35,8 @@ class ProductLogic extends BaseLogic | ||
| 35 | public function productSave(){ | 35 | public function productSave(){ |
| 36 | //参数处理 | 36 | //参数处理 |
| 37 | $this->param = $this->handleSaveParam($this->param); | 37 | $this->param = $this->handleSaveParam($this->param); |
| 38 | - DB::beginTransaction(); | ||
| 39 | - try { | 38 | +// DB::beginTransaction(); |
| 39 | +// try { | ||
| 40 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 40 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 41 | //查看路由是否更新 | 41 | //查看路由是否更新 |
| 42 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); | 42 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); |
| @@ -50,11 +50,11 @@ class ProductLogic extends BaseLogic | @@ -50,11 +50,11 @@ class ProductLogic extends BaseLogic | ||
| 50 | //路由映射 | 50 | //路由映射 |
| 51 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); | 51 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); |
| 52 | $this->model->edit(['route'=>$route],['id'=>$id]); | 52 | $this->model->edit(['route'=>$route],['id'=>$id]); |
| 53 | - DB::commit(); | ||
| 54 | - }catch (\Exception $e){ | ||
| 55 | - DB::rollBack(); | ||
| 56 | - $this->fail('保存失败'); | ||
| 57 | - } | 53 | +// DB::commit(); |
| 54 | +// }catch (\Exception $e){ | ||
| 55 | +// DB::rollBack(); | ||
| 56 | +// $this->fail('保存失败'); | ||
| 57 | +// } | ||
| 58 | //通知更新 | 58 | //通知更新 |
| 59 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]); | 59 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]); |
| 60 | return $this->success(); | 60 | return $this->success(); |
-
请 注册 或 登录 后发表评论