作者 刘锟

小语种自定义跳转域名

@@ -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 }