From 3ee50bcfc026bd8501e19171c4bf9bad88a0748e Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Tue, 26 Nov 2019 17:36:38 +0800 Subject: [PATCH] upt --- .../Admin/Controller/ConsoleController.class.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/ConsoleController.class.php b/Application/Admin/Controller/ConsoleController.class.php index 9ccebc9f9..b7a89192d 100644 --- a/Application/Admin/Controller/ConsoleController.class.php +++ b/Application/Admin/Controller/ConsoleController.class.php @@ -89,12 +89,23 @@ class ConsoleController extends Think { } } + public function modifyLoginRepair() + { + $this->modifyLogin(0); + } + + public function modifyLoginGenerate() + { + $this->modifyLogin(strtotime(date("Y-m-d"))-86400); + } + /** * 登录校验 */ - public function modifyLogin() + private function modifyLogin($start_time=0) { - $start_time = $current_time = strtotime(date("Y-m-d"))-86400; + echo $start_time;exit; + $current_time = strtotime(date("Y-m-d"))-86400; for ($i=$start_time; $i<=$current_time; $i+=86400) { $end_time = $i+86400; $result = M()->query("SELECT