作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2155
@@ -629,18 +629,18 @@ class Temp extends Command @@ -629,18 +629,18 @@ class Temp extends Command
629 $domain = $domain_info['domain']; 629 $domain = $domain_info['domain'];
630 630
631 //迁移主站 631 //迁移主站
632 - try {  
633 - $check = dns_get_record($domain, DNS_A);  
634 - $host = $check[0]['host'] ?? '';  
635 - } catch (\Exception $e) {  
636 - $this->output($domain . ' | 获取解析记录失败');  
637 - continue;  
638 - }  
639 -  
640 - if ($host != 'cname.globalso.com') {  
641 - $this->output($domain . ' | 未解析cname');  
642 - continue;  
643 - } 632 +// try {
  633 +// $check = dns_get_record($domain, DNS_A);
  634 +// $host = $check[0]['host'] ?? '';
  635 +// } catch (\Exception $e) {
  636 +// $this->output($domain . ' | 获取解析记录失败');
  637 +// continue;
  638 +// }
  639 +//
  640 +// if ($host != 'cname.globalso.com') {
  641 +// $this->output($domain . ' | 未解析cname');
  642 +// continue;
  643 +// }
644 644
645 //获取主站备份证书 645 //获取主站备份证书
646 $ssl_info = DB::table('gl_domain_ssl_backup')->select(['private_key', 'private_cert'])->where('domain', $domain)->first(); 646 $ssl_info = DB::table('gl_domain_ssl_backup')->select(['private_key', 'private_cert'])->where('domain', $domain)->first();
@@ -706,18 +706,18 @@ class Temp extends Command @@ -706,18 +706,18 @@ class Temp extends Command
706 } 706 }
707 $amp_domain = implode('.', $host_array); 707 $amp_domain = implode('.', $host_array);
708 708
709 - try {  
710 - $check_amp = dns_get_record($amp_domain, DNS_A);  
711 - $host_amp = $check_amp[0]['host'] ?? '';  
712 - } catch (\Exception $e) {  
713 - $this->output($amp_domain . ' | 获取解析记录失败');  
714 - continue;  
715 - }  
716 -  
717 - if ($host_amp != 'cname.globalso.com') {  
718 - $this->output($amp_domain . ' | 未解析cname');  
719 - continue;  
720 - } 709 +// try {
  710 +// $check_amp = dns_get_record($amp_domain, DNS_A);
  711 +// $host_amp = $check_amp[0]['host'] ?? '';
  712 +// } catch (\Exception $e) {
  713 +// $this->output($amp_domain . ' | 获取解析记录失败');
  714 +// continue;
  715 +// }
  716 +//
  717 +// if ($host_amp != 'cname.globalso.com') {
  718 +// $this->output($amp_domain . ' | 未解析cname');
  719 +// continue;
  720 +// }
721 721
722 //获取amp站备份证书 722 //获取amp站备份证书
723 $ssl_info_amp = DB::table('gl_domain_ssl_backup')->select(['private_key', 'private_cert'])->where('domain', $amp_domain)->first(); 723 $ssl_info_amp = DB::table('gl_domain_ssl_backup')->select(['private_key', 'private_cert'])->where('domain', $amp_domain)->first();