正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
| @@ -55,18 +55,18 @@ class NewsLogic extends BaseLogic | @@ -55,18 +55,18 @@ class NewsLogic extends BaseLogic | ||
| 55 | */ | 55 | */ |
| 56 | public function news_add(){ | 56 | public function news_add(){ |
| 57 | //拼接参数 | 57 | //拼接参数 |
| 58 | - DB::beginTransaction(); | ||
| 59 | - try { | 58 | +// DB::beginTransaction(); |
| 59 | +// try { | ||
| 60 | $this->param = $this->paramProcessing($this->param); | 60 | $this->param = $this->paramProcessing($this->param); |
| 61 | $rs = $this->model->insertGetId($this->param); | 61 | $rs = $this->model->insertGetId($this->param); |
| 62 | - $route = RouteMap::setRoute($this->param['url'] ?: $this->param['name'], RouteMap::SOURCE_NEWS, $rs, $this->user['project_id']); | ||
| 63 | - DB::commit(); | ||
| 64 | - }catch (\Exception $e){ | ||
| 65 | - DB::rollBack(); | ||
| 66 | - $this->fail('添加失败'); | ||
| 67 | - } | 62 | +// $route = RouteMap::setRoute($this->param['url'] ?: $this->param['name'], RouteMap::SOURCE_NEWS, $rs, $this->user['project_id']); |
| 63 | +// DB::commit(); | ||
| 64 | +// }catch (\Exception $e){ | ||
| 65 | +// DB::rollBack(); | ||
| 66 | +// $this->fail('添加失败'); | ||
| 67 | +// } | ||
| 68 | //通知更新 | 68 | //通知更新 |
| 69 | - $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_NEWS, 'route'=>$route]); | 69 | +// $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_NEWS, 'route'=>$route]); |
| 70 | return $this->success(); | 70 | return $this->success(); |
| 71 | } | 71 | } |
| 72 | 72 |
-
请 注册 或 登录 后发表评论