正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -44,17 +44,17 @@ class WebSettingSeoLogic extends BaseLogic | @@ -44,17 +44,17 @@ class WebSettingSeoLogic extends BaseLogic | ||
| 44 | * @time :2023/9/11 16:34 | 44 | * @time :2023/9/11 16:34 |
| 45 | */ | 45 | */ |
| 46 | public function seoSave(){ | 46 | public function seoSave(){ |
| 47 | - try { | 47 | +// try { |
| 48 | $info = $this->model->read(['project_id'=>$this->user['project_id']]); | 48 | $info = $this->model->read(['project_id'=>$this->user['project_id']]); |
| 49 | if($info === false){ | 49 | if($info === false){ |
| 50 | $this->param['project_id'] = $this->user['project_id']; | 50 | $this->param['project_id'] = $this->user['project_id']; |
| 51 | $this->model->add($this->param); | 51 | $this->model->add($this->param); |
| 52 | }else{ | 52 | }else{ |
| 53 | - $this->model->edit($this->param,['project_id'=>$this->param['project_id']]); | 53 | + $this->model->edit($this->param,['project_id'=>$this->user['project_id']]); |
| 54 | } | 54 | } |
| 55 | - }catch (\Exception $e){ | ||
| 56 | - $this->fail('error'); | ||
| 57 | - } | 55 | +// }catch (\Exception $e){ |
| 56 | +// $this->fail('error'); | ||
| 57 | +// } | ||
| 58 | return $this->success(); | 58 | return $this->success(); |
| 59 | } | 59 | } |
| 60 | } | 60 | } |
-
请 注册 或 登录 后发表评论