From b7aa4d13fae920fac747493ce43713904549ecef Mon Sep 17 00:00:00 2001 From: zhaohui Date: Sun, 4 Jan 2026 16:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crontab/crosscheck_auto_shell_v2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crontab/crosscheck_auto_shell_v2.php b/crontab/crosscheck_auto_shell_v2.php index 8281e7d..9c124ac 100644 --- a/crontab/crosscheck_auto_shell_v2.php +++ b/crontab/crosscheck_auto_shell_v2.php @@ -33,10 +33,10 @@ try{ if(file_exists($fail_login_file)){ // 获得文件内容 $fail_info = file_get_contents($fail_login_file); - $arr_user_info = explode("\n", $fail_info); - if($arr_user_info[0]+0 >=5){ + $arr_fail_info = explode("\n", $fail_info); + if($arr_fail_info[0]+0 >=5){ // 记录日志 - $str_log = date('Y-m-d H:i:s')."|已登录失败{$arr_user_info[0]}次|".$user; + $str_log = date('Y-m-d H:i:s')."|已登录失败{$arr_fail_info[0]}次|".$user; file_put_contents($log_file, $str_log . PHP_EOL, FILE_APPEND); continue; } @@ -88,7 +88,7 @@ try{ file_put_contents($log_file, $str_log . PHP_EOL, FILE_APPEND); // 写入错误登录文件 - $fail_info = $arr_user_info[0]+1; + $fail_info = $arr_fail_info[0]+1; file_put_contents($fail_login_file, $fail_info); }else{