正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -54,9 +54,11 @@ class WebSettingTextLogic extends BaseLogic | @@ -54,9 +54,11 @@ class WebSettingTextLogic extends BaseLogic | ||
| 54 | */ | 54 | */ |
| 55 | public function setting_text_save(){ | 55 | public function setting_text_save(){ |
| 56 | $web_setting = new WebSetting(); | 56 | $web_setting = new WebSetting(); |
| 57 | + if(isset($this->param['data']) && !empty($this->param['data'])){ | ||
| 57 | if(count($this->param['data']) > $this->param['anchor_num']){ | 58 | if(count($this->param['data']) > $this->param['anchor_num']){ |
| 58 | $this->fail('超过最大设置限制'); | 59 | $this->fail('超过最大设置限制'); |
| 59 | } | 60 | } |
| 61 | + } | ||
| 60 | //更新描文本设置 | 62 | //更新描文本设置 |
| 61 | if($this->param['anchor_is_enable'] == 0){ | 63 | if($this->param['anchor_is_enable'] == 0){ |
| 62 | $this->param['anchor_keyword_is_enable'] = 0; | 64 | $this->param['anchor_keyword_is_enable'] = 0; |
-
请 注册 或 登录 后发表评论