作者 刘锟

update

@@ -83,7 +83,7 @@ class DomainInfo extends Command @@ -83,7 +83,7 @@ class DomainInfo extends Command
83 public function startUpdateCert() 83 public function startUpdateCert()
84 { 84 {
85 $domainModel = new DomainInfoModel(); 85 $domainModel = new DomainInfoModel();
86 - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 86 + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期
87 $list = $domainModel->where('status', '!=', 2)->where(function ($query) use ($end_day) { 87 $list = $domainModel->where('status', '!=', 2)->where(function ($query) use ($end_day) {
88 $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); 88 $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day);
89 })->get()->toArray(); 89 })->get()->toArray();
@@ -111,7 +111,7 @@ class DomainInfo extends Command @@ -111,7 +111,7 @@ class DomainInfo extends Command
111 public function startUpdateAmpCert() 111 public function startUpdateAmpCert()
112 { 112 {
113 $domainModel = new DomainInfoModel(); 113 $domainModel = new DomainInfoModel();
114 - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 114 + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期
115 $list = $domainModel->where('status', '!=', 2)->where('amp_status', 1)->where(function ($query) use ($end_day) { 115 $list = $domainModel->where('status', '!=', 2)->where('amp_status', 1)->where(function ($query) use ($end_day) {
116 $query->whereNull('amp_certificate_end_time')->orWhere('amp_certificate_end_time', '<', $end_day); 116 $query->whereNull('amp_certificate_end_time')->orWhere('amp_certificate_end_time', '<', $end_day);
117 })->get()->toArray(); 117 })->get()->toArray();
@@ -149,7 +149,7 @@ class DomainInfo extends Command @@ -149,7 +149,7 @@ class DomainInfo extends Command
149 public function startUpdateCustomCert() 149 public function startUpdateCustomCert()
150 { 150 {
151 $customModel = new CountryCustom(); 151 $customModel = new CountryCustom();
152 - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 152 + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期
153 $list = $customModel->where('status', 1)->where('is_create', 1)->where(function ($query) use ($end_day) { 153 $list = $customModel->where('status', 1)->where('is_create', 1)->where(function ($query) use ($end_day) {
154 $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); 154 $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day);
155 })->get()->toArray(); 155 })->get()->toArray();