作者 lyh

gx

@@ -43,10 +43,12 @@ class DomainInfo extends Command @@ -43,10 +43,12 @@ class DomainInfo extends Command
43 foreach ($list as $v){ 43 foreach ($list as $v){
44 if(empty($v['private_key']) || empty($v['private_cert'])){ 44 if(empty($v['private_key']) || empty($v['private_cert'])){
45 //域名结束时间<2天时,重新生成 45 //域名结束时间<2天时,重新生成
46 - if(!empty($v['certificate_end_time']) && ($v['certificate_end_time'] > date('Y-m-d H:i:s',time() + 24*3600))){ 46 + if(!empty($v['certificate_end_time'])){
  47 + if(($v['certificate_end_time'] > date('Y-m-d H:i:s',time() + 24*3600)) || ($v['certificate_end_time'] < date('Y-m-d H:i:s',time()))){
47 $this->updatePrivate($v); 48 $this->updatePrivate($v);
48 } 49 }
49 } 50 }
  51 + }
50 $ssl = $this->updateDomainSsl($v['domain']); 52 $ssl = $this->updateDomainSsl($v['domain']);
51 $time = $this->updateDomain($v['domain']); 53 $time = $this->updateDomain($v['domain']);
52 if(!empty($time['start']) && !!empty($time['end'])){ 54 if(!empty($time['start']) && !!empty($time['end'])){