正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -59,8 +59,8 @@ class NewsLogic extends BaseLogic | @@ -59,8 +59,8 @@ class NewsLogic extends BaseLogic | ||
| 59 | public function newsSave() | 59 | public function newsSave() |
| 60 | { | 60 | { |
| 61 | //拼接参数 | 61 | //拼接参数 |
| 62 | - DB::beginTransaction(); | ||
| 63 | - try { | 62 | +// DB::beginTransaction(); |
| 63 | +// try { | ||
| 64 | $this->param = $this->paramProcessing($this->param); | 64 | $this->param = $this->paramProcessing($this->param); |
| 65 | if (isset($this->param['id']) && !empty($this->param['id'])) { | 65 | if (isset($this->param['id']) && !empty($this->param['id'])) { |
| 66 | //是否更新路由 | 66 | //是否更新路由 |
| @@ -72,11 +72,11 @@ class NewsLogic extends BaseLogic | @@ -72,11 +72,11 @@ class NewsLogic extends BaseLogic | ||
| 72 | //更新路由 | 72 | //更新路由 |
| 73 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); | 73 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); |
| 74 | $this->edit(['url' => $route], ['id' => $id]); | 74 | $this->edit(['url' => $route], ['id' => $id]); |
| 75 | - DB::commit(); | ||
| 76 | - } catch (\Exception $e) { | ||
| 77 | - DB::rollBack(); | ||
| 78 | - $this->fail('系统错误,请联系管理员'); | ||
| 79 | - } | 75 | +// DB::commit(); |
| 76 | +// } catch (\Exception $e) { | ||
| 77 | +// DB::rollBack(); | ||
| 78 | +// $this->fail('系统错误,请联系管理员'); | ||
| 79 | +// } | ||
| 80 | //通知更新 | 80 | //通知更新 |
| 81 | $this->updateNotify(['project_id' => $this->user['project_id'], 'type' => RouteMap::SOURCE_NEWS, 'route' => $route]); | 81 | $this->updateNotify(['project_id' => $this->user['project_id'], 'type' => RouteMap::SOURCE_NEWS, 'route' => $route]); |
| 82 | return $this->success(); | 82 | return $this->success(); |
-
请 注册 或 登录 后发表评论