作者 刘锟

update

@@ -150,7 +150,11 @@ class NoticeController extends BaseController @@ -150,7 +150,11 @@ class NoticeController extends BaseController
150 } 150 }
151 151
152 if($other_domain){ 152 if($other_domain){
153 - foreach ($other_domain as $ov) { 153 + foreach ($other_domain as &$ov) {
  154 + if(strpos($ov,'http') !== false){
  155 + $ov_array = parse_url($ov);
  156 + $ov = $ov_array['host'] ?? '';
  157 + }
154 if (!check_domain_record($ov, ['domain'=>'','ip'=>DomainInfo::SERVER_IP_301])) { 158 if (!check_domain_record($ov, ['domain'=>'','ip'=>DomainInfo::SERVER_IP_301])) {
155 return $this->error($ov . ' 未解析至 ' . DomainInfo::SERVER_IP_301); 159 return $this->error($ov . ' 未解析至 ' . DomainInfo::SERVER_IP_301);
156 } 160 }