正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -40,8 +40,8 @@ class ProductLogic extends BaseLogic | @@ -40,8 +40,8 @@ class ProductLogic extends BaseLogic | ||
| 40 | // $category_ids = $this->param['category_id'] ?? []; | 40 | // $category_ids = $this->param['category_id'] ?? []; |
| 41 | //参数处理 | 41 | //参数处理 |
| 42 | $this->param = $this->handleSaveParam($this->param); | 42 | $this->param = $this->handleSaveParam($this->param); |
| 43 | - DB::connection('custom_mysql')->beginTransaction(); | ||
| 44 | - try { | 43 | +// DB::connection('custom_mysql')->beginTransaction(); |
| 44 | +// try { | ||
| 45 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 45 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 46 | //查看路由是否更新 | 46 | //查看路由是否更新 |
| 47 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); | 47 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); |
| @@ -57,11 +57,11 @@ class ProductLogic extends BaseLogic | @@ -57,11 +57,11 @@ class ProductLogic extends BaseLogic | ||
| 57 | $this->model->edit(['route'=>$route],['id'=>$id]); | 57 | $this->model->edit(['route'=>$route],['id'=>$id]); |
| 58 | //产品分类关联 | 58 | //产品分类关联 |
| 59 | // CategoryRelated::saveRelated($id, $category_ids); | 59 | // CategoryRelated::saveRelated($id, $category_ids); |
| 60 | - DB::connection('custom_mysql')->commit(); | ||
| 61 | - }catch (\Exception $e){ | ||
| 62 | - DB::connection('custom_mysql')->rollBack(); | ||
| 63 | - $this->fail('系统错误请联系管理员'); | ||
| 64 | - } | 60 | +// DB::connection('custom_mysql')->commit(); |
| 61 | +// }catch (\Exception $e){ | ||
| 62 | +// DB::connection('custom_mysql')->rollBack(); | ||
| 63 | +// $this->fail('系统错误请联系管理员'); | ||
| 64 | +// } | ||
| 65 | //通知更新 | 65 | //通知更新 |
| 66 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]); | 66 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]); |
| 67 | return $this->success(); | 67 | return $this->success(); |
-
请 注册 或 登录 后发表评论