正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -25,7 +25,7 @@ class WebSettingTextLogic extends BaseLogic | @@ -25,7 +25,7 @@ class WebSettingTextLogic extends BaseLogic | ||
| 25 | */ | 25 | */ |
| 26 | public function setting_read(){ | 26 | public function setting_read(){ |
| 27 | $web_setting = new WebSetting(); | 27 | $web_setting = new WebSetting(); |
| 28 | - $setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num']); | 28 | + $setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num','anchor_page_num']); |
| 29 | if($setting_info === false){ | 29 | if($setting_info === false){ |
| 30 | $setting_info = []; | 30 | $setting_info = []; |
| 31 | } | 31 | } |
| @@ -63,7 +63,8 @@ class WebSettingTextLogic extends BaseLogic | @@ -63,7 +63,8 @@ class WebSettingTextLogic extends BaseLogic | ||
| 63 | $data = [ | 63 | $data = [ |
| 64 | 'anchor_setting'=>$this->param['anchor_setting'], | 64 | 'anchor_setting'=>$this->param['anchor_setting'], |
| 65 | 'anchor_is_enable'=>$this->param['anchor_is_enable'], | 65 | 'anchor_is_enable'=>$this->param['anchor_is_enable'], |
| 66 | - 'anchor_num'=>$this->param['anchor_num'] | 66 | + 'anchor_num'=>$this->param['anchor_num'] ?? 0, |
| 67 | + 'anchor_page_num'=>$this->param['anchor_page_num'] ?? 0 | ||
| 67 | ]; | 68 | ]; |
| 68 | $web_setting->edit($data,['project_id'=>$this->user['project_id']]); | 69 | $web_setting->edit($data,['project_id'=>$this->user['project_id']]); |
| 69 | $this->model->del(['project_id'=>$this->user['project_id']]); | 70 | $this->model->del(['project_id'=>$this->user['project_id']]); |
-
请 注册 或 登录 后发表评论