|
...
|
...
|
@@ -25,7 +25,7 @@ class WebSettingTextLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function setting_read(){
|
|
|
|
$web_setting = new WebSetting();
|
|
|
|
$setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num']);
|
|
|
|
$setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num','anchor_page_num']);
|
|
|
|
if($setting_info === false){
|
|
|
|
$setting_info = [];
|
|
|
|
}
|
|
...
|
...
|
@@ -63,7 +63,8 @@ class WebSettingTextLogic extends BaseLogic |
|
|
|
$data = [
|
|
|
|
'anchor_setting'=>$this->param['anchor_setting'],
|
|
|
|
'anchor_is_enable'=>$this->param['anchor_is_enable'],
|
|
|
|
'anchor_num'=>$this->param['anchor_num']
|
|
|
|
'anchor_num'=>$this->param['anchor_num'] ?? 0,
|
|
|
|
'anchor_page_num'=>$this->param['anchor_page_num'] ?? 0
|
|
|
|
];
|
|
|
|
$web_setting->edit($data,['project_id'=>$this->user['project_id']]);
|
|
|
|
$this->model->del(['project_id'=>$this->user['project_id']]);
|
...
|
...
|
|