正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -61,8 +61,8 @@ class NewsLogic extends BaseLogic | @@ -61,8 +61,8 @@ class NewsLogic extends BaseLogic | ||
| 61 | public function newsSave() | 61 | public function newsSave() |
| 62 | { | 62 | { |
| 63 | //拼接参数 | 63 | //拼接参数 |
| 64 | - DB::beginTransaction(); | ||
| 65 | - try { | 64 | +// DB::beginTransaction(); |
| 65 | +// try { | ||
| 66 | $this->param = $this->paramProcessing($this->param); | 66 | $this->param = $this->paramProcessing($this->param); |
| 67 | if (isset($this->param['id']) && !empty($this->param['id'])) { | 67 | if (isset($this->param['id']) && !empty($this->param['id'])) { |
| 68 | $id = $this->param['id']; | 68 | $id = $this->param['id']; |
| @@ -80,12 +80,12 @@ class NewsLogic extends BaseLogic | @@ -80,12 +80,12 @@ class NewsLogic extends BaseLogic | ||
| 80 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); | 80 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); |
| 81 | $this->edit(['url' => $route], ['id' => $id]); | 81 | $this->edit(['url' => $route], ['id' => $id]); |
| 82 | } | 82 | } |
| 83 | - //更新路由 | ||
| 84 | - DB::commit(); | ||
| 85 | - } catch (\Exception $e) { | ||
| 86 | - DB::rollBack(); | ||
| 87 | - $this->fail('系统错误,请联系管理员'); | ||
| 88 | - } | 83 | +// //更新路由 |
| 84 | +// DB::commit(); | ||
| 85 | +// } catch (\Exception $e) { | ||
| 86 | +// DB::rollBack(); | ||
| 87 | +// $this->fail('系统错误,请联系管理员'); | ||
| 88 | +// } | ||
| 89 | $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route); | 89 | $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route); |
| 90 | $this->curlDelRoute(['new_route'=>$route]); | 90 | $this->curlDelRoute(['new_route'=>$route]); |
| 91 | return $this->success(['id'=>$id]); | 91 | return $this->success(['id'=>$id]); |
-
请 注册 或 登录 后发表评论