正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
| @@ -1031,7 +1031,13 @@ class Temp extends Command | @@ -1031,7 +1031,13 @@ class Temp extends Command | ||
| 1031 | } | 1031 | } |
| 1032 | $domain = $domain_info['domain']; | 1032 | $domain = $domain_info['domain']; |
| 1033 | 1033 | ||
| 1034 | - $check = dns_get_record($domain, DNS_A); | 1034 | + $check = []; |
| 1035 | + try { | ||
| 1036 | + $check = dns_get_record($domain, DNS_A); | ||
| 1037 | + } catch (\Exception $e) { | ||
| 1038 | + $this->output($domain . ' | ' . $e->getMessage()); | ||
| 1039 | + } | ||
| 1040 | + | ||
| 1035 | $ip = $check[0]['ip'] ?? ''; | 1041 | $ip = $check[0]['ip'] ?? ''; |
| 1036 | $host = $check[0]['host'] ?? ''; | 1042 | $host = $check[0]['host'] ?? ''; |
| 1037 | if (strpos($host, 'globalso.com') === false) { | 1043 | if (strpos($host, 'globalso.com') === false) { |
-
请 注册 或 登录 后发表评论