作者 lyh

gx

@@ -33,8 +33,7 @@ class Kernel extends ConsoleKernel @@ -33,8 +33,7 @@ class Kernel extends ConsoleKernel
33 $schedule->command('forward_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计转发询盘记录 33 $schedule->command('forward_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计转发询盘记录
34 $schedule->command('inquiry_delay')->everyMinute()->withoutOverlapping(1);//TODO::上线放开,转发询盘,每分钟执行一次 34 $schedule->command('inquiry_delay')->everyMinute()->withoutOverlapping(1);//TODO::上线放开,转发询盘,每分钟执行一次
35 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次 35 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次
36 -// // 更新域名|证书结束时间,每天凌晨1点执行一次  
37 -// $schedule->command('domain_time')->dailyAt('01:00')->withoutOverlapping(1); 36 + $schedule->command('domain_info')->dailyAt('01:00')->withoutOverlapping(1);// 更新域名|证书结束时间,每天凌晨1点执行一次
38 } 37 }
39 38
40 /** 39 /**
@@ -298,23 +298,5 @@ class LoginController extends BaseController @@ -298,23 +298,5 @@ class LoginController extends BaseController
298 } 298 }
299 299
300 public function ceshi(){ 300 public function ceshi(){
301 - $context = stream_context_create([  
302 - 'ssl' => [  
303 - 'capture_peer_cert' => true,  
304 - 'capture_peer_cert_chain' => false,  
305 - ],  
306 - ]);  
307 - $stream = stream_socket_client('ssl://dev.globalso.site:443', $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $context);  
308 - if(!$stream) {  
309 - die("Failed to connect: $errno - $errstr");  
310 - }  
311 - $remote_cert = stream_context_get_params($stream)['options']['ssl']['peer_certificate'];  
312 - if(!$remote_cert) {  
313 - die("Failed to retrieve certificate");  
314 - }  
315 - $valid_from = date('Y-m-d H:i:s', openssl_x509_parse($remote_cert)['validFrom_time_t']);  
316 - $valid_to = date('Y-m-d H:i:s', openssl_x509_parse($remote_cert)['validTo_time_t']);  
317 - fclose($stream);  
318 - return ['from'=>$valid_from,'to'=>$valid_to];  
319 } 301 }
320 } 302 }