合并分支 'akun' 到 'master'
Akun 查看合并请求 !650
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -303,8 +303,8 @@ class DomainInfoLogic extends BaseLogic | @@ -303,8 +303,8 @@ class DomainInfoLogic extends BaseLogic | ||
| 303 | 303 | ||
| 304 | //保存301跳转数据+其他域名 | 304 | //保存301跳转数据+其他域名 |
| 305 | $data = [ | 305 | $data = [ |
| 306 | - 'other_domain'=>json_encode($this->param['other_domain'] ?? []), | ||
| 307 | - 'extend_config'=>json_encode($this->param['extend_config'] ?? []), | 306 | + 'other_domain'=>json_encode(array_filter($this->param['other_domain'] ?? [])), |
| 307 | + 'extend_config'=>json_encode(array_filter($this->param['extend_config'] ?? [])), | ||
| 308 | 'type'=>$this->param['type'], | 308 | 'type'=>$this->param['type'], |
| 309 | 'private_key' => $this->param['key'] ?? '', | 309 | 'private_key' => $this->param['key'] ?? '', |
| 310 | 'private_cert' => $this->param['cert'] ?? '', | 310 | 'private_cert' => $this->param['cert'] ?? '', |
| @@ -313,8 +313,8 @@ class DomainInfoLogic extends BaseLogic | @@ -313,8 +313,8 @@ class DomainInfoLogic extends BaseLogic | ||
| 313 | 'amp_type' => $this->param['amp_type'] ?? 0, | 313 | 'amp_type' => $this->param['amp_type'] ?? 0, |
| 314 | 'amp_private_key' => $this->param['amp_key'] ?? '', | 314 | 'amp_private_key' => $this->param['amp_key'] ?? '', |
| 315 | 'amp_private_cert' => $this->param['amp_cert'] ?? '', | 315 | 'amp_private_cert' => $this->param['amp_cert'] ?? '', |
| 316 | - 'not_allow_country'=>json_encode($this->param['not_allow_country'] ?? []), | ||
| 317 | - 'not_allow_ip'=>json_encode($this->param['not_allow_ip'] ?? []), | 316 | + 'not_allow_country'=>json_encode(array_filter($this->param['not_allow_country'] ?? [])), |
| 317 | + 'not_allow_ip'=>json_encode(array_filter($this->param['not_allow_ip'] ?? [])), | ||
| 318 | ]; | 318 | ]; |
| 319 | $this->model->edit($data,['id'=>$this->param['id']]); | 319 | $this->model->edit($data,['id'=>$this->param['id']]); |
| 320 | //主站生成证书 | 320 | //主站生成证书 |
-
请 注册 或 登录 后发表评论