正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论