正在显示
1 个修改的文件
包含
5 行增加
和
6 行删除
| @@ -35,15 +35,14 @@ class WebSettingServiceLogic extends BaseLogic | @@ -35,15 +35,14 @@ class WebSettingServiceLogic extends BaseLogic | ||
| 35 | * @time :2023/5/4 11:10 | 35 | * @time :2023/5/4 11:10 |
| 36 | */ | 36 | */ |
| 37 | public function setting_service_save(){ | 37 | public function setting_service_save(){ |
| 38 | -// try { | 38 | + try { |
| 39 | //删除以前的数据 | 39 | //删除以前的数据 |
| 40 | $param['project_id'] = $this->user['project_id']; | 40 | $param['project_id'] = $this->user['project_id']; |
| 41 | $this->model->del($param); | 41 | $this->model->del($param); |
| 42 | - //新增 | ||
| 43 | - $this->model->add($this->param); | ||
| 44 | -// }catch (\Exception $e){ | ||
| 45 | -// $this->fail('error'); | ||
| 46 | -// } | 42 | + $this->model->add($this->param['data']); |
| 43 | + }catch (\Exception $e){ | ||
| 44 | + $this->fail('error'); | ||
| 45 | + } | ||
| 47 | return $this->success(); | 46 | return $this->success(); |
| 48 | } | 47 | } |
| 49 | 48 |
-
请 注册 或 登录 后发表评论