作者 刘锟

update

@@ -54,10 +54,10 @@ public function checkDomainSsl() @@ -54,10 +54,10 @@ public function checkDomainSsl()
54 $host = $site_list['data'][0]['name']; 54 $host = $site_list['data'][0]['name'];
55 55
56 //获取站点可用于设置证书的域名 56 //获取站点可用于设置证书的域名
57 - $site_domain = $this->bt->WebDoaminList($site_id); 57 + $site_domain_list = $this->bt->WebDoaminList($site_id);
58 $apply_ssl_domain_list = []; 58 $apply_ssl_domain_list = [];
59 - foreach ($site_domain as $val) {  
60 - if (strpos($val['name'], '*') === false && $this->check_domain_record($val['name'], ['ip' => $site_ip])) { 59 + foreach ($site_domain_list as $val) {
  60 + if (strpos($val['name'], '*') === false && $this->check_domain_record($val['name'], ['domain'=>'','ip' => $site_ip])) {
61 $apply_ssl_domain_list[] = $val['name']; 61 $apply_ssl_domain_list[] = $val['name'];
62 } 62 }
63 } 63 }