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