正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -33,8 +33,8 @@ class BlogLogic extends BaseLogic | @@ -33,8 +33,8 @@ class BlogLogic extends BaseLogic | ||
| 33 | */ | 33 | */ |
| 34 | public function blogSave(){ | 34 | public function blogSave(){ |
| 35 | //拼接参数 | 35 | //拼接参数 |
| 36 | - DB::beginTransaction(); | ||
| 37 | - try { | 36 | +// DB::beginTransaction(); |
| 37 | +// try { | ||
| 38 | $this->param = $this->paramProcessing($this->param); | 38 | $this->param = $this->paramProcessing($this->param); |
| 39 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 39 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 40 | //是否更新路由 | 40 | //是否更新路由 |
| @@ -45,11 +45,11 @@ class BlogLogic extends BaseLogic | @@ -45,11 +45,11 @@ class BlogLogic extends BaseLogic | ||
| 45 | } | 45 | } |
| 46 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); | 46 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); |
| 47 | $this->edit(['url'=>$route],['id'=>$id]); | 47 | $this->edit(['url'=>$route],['id'=>$id]); |
| 48 | - DB::commit(); | ||
| 49 | - }catch (\Exception $e){ | ||
| 50 | - DB::rollBack(); | ||
| 51 | - $this->fail('error'); | ||
| 52 | - } | 48 | +// DB::commit(); |
| 49 | +// }catch (\Exception $e){ | ||
| 50 | +// DB::rollBack(); | ||
| 51 | +// $this->fail('error'); | ||
| 52 | +// } | ||
| 53 | //通知更新 | 53 | //通知更新 |
| 54 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_BLOG, 'route'=>$route]); | 54 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_BLOG, 'route'=>$route]); |
| 55 | return $this->success(); | 55 | return $this->success(); |
-
请 注册 或 登录 后发表评论