正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -378,11 +378,10 @@ class DomainInfoLogic extends BaseLogic | @@ -378,11 +378,10 @@ class DomainInfoLogic extends BaseLogic | ||
| 378 | if(empty($this->param['custom_domain'])){ | 378 | if(empty($this->param['custom_domain'])){ |
| 379 | $this->fail('自定义跳转域名不能为空'); | 379 | $this->fail('自定义跳转域名不能为空'); |
| 380 | } | 380 | } |
| 381 | - $domain_arr = parse_url($this->param['custom_domain']); | ||
| 382 | - if(!isset($domain_arr['host'])){ | ||
| 383 | - $this->fail('自定义跳转域名填写错误'); | 381 | + if(strpos($this->param['custom_domain'],'http') !== false){ |
| 382 | + $domain_arr = parse_url($this->param['custom_domain']); | ||
| 383 | + $this->param['custom_domain'] = $domain_arr['host']; | ||
| 384 | } | 384 | } |
| 385 | - $this->param['custom_domain'] = $domain_arr['host']; | ||
| 386 | if(!$this->check_cname($this->param['custom_domain'], $server_info)){ | 385 | if(!$this->check_cname($this->param['custom_domain'], $server_info)){ |
| 387 | $this->fail('域名' . $this->param['custom_domain'] . '未解析至目标服务器'); | 386 | $this->fail('域名' . $this->param['custom_domain'] . '未解析至目标服务器'); |
| 388 | } | 387 | } |
-
请 注册 或 登录 后发表评论