正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -52,8 +52,8 @@ class KeywordLogic extends BaseLogic | @@ -52,8 +52,8 @@ class KeywordLogic extends BaseLogic | ||
| 52 | * @time :2023/8/23 16:50 | 52 | * @time :2023/8/23 16:50 |
| 53 | */ | 53 | */ |
| 54 | public function keywordSave(){ | 54 | public function keywordSave(){ |
| 55 | - DB::beginTransaction(); | ||
| 56 | - try { | 55 | +// DB::beginTransaction(); |
| 56 | +// try { | ||
| 57 | $this->param = $this->handleSaveParam($this->param); | 57 | $this->param = $this->handleSaveParam($this->param); |
| 58 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 58 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 59 | $this->model->edit($this->param,['id'=>$this->param['id']]); | 59 | $this->model->edit($this->param,['id'=>$this->param['id']]); |
| @@ -69,11 +69,11 @@ class KeywordLogic extends BaseLogic | @@ -69,11 +69,11 @@ class KeywordLogic extends BaseLogic | ||
| 69 | $this->model->edit(['route'=>$route],['id'=>$id]); | 69 | $this->model->edit(['route'=>$route],['id'=>$id]); |
| 70 | //清除缓存 | 70 | //清除缓存 |
| 71 | Common::del_user_cache('product_keyword',$this->user['project_id']); | 71 | Common::del_user_cache('product_keyword',$this->user['project_id']); |
| 72 | - DB::commit(); | ||
| 73 | - }catch (\Exception $e){ | ||
| 74 | - DB::rollBack(); | ||
| 75 | - $this->fail('保存失败'); | ||
| 76 | - } | 72 | +// DB::commit(); |
| 73 | +// }catch (\Exception $e){ | ||
| 74 | +// DB::rollBack(); | ||
| 75 | +// $this->fail('保存失败'); | ||
| 76 | +// } | ||
| 77 | //通知更新 | 77 | //通知更新 |
| 78 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]); | 78 | $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]); |
| 79 | return $this->success(); | 79 | return $this->success(); |
-
请 注册 或 登录 后发表评论