diff --git a/Application/Admin/Controller/ConsoleController.class.php b/Application/Admin/Controller/ConsoleController.class.php index 71ff3486e..4001dfba5 100644 --- a/Application/Admin/Controller/ConsoleController.class.php +++ b/Application/Admin/Controller/ConsoleController.class.php @@ -94,9 +94,10 @@ class ConsoleController extends Think { $this->modifyLogin(1569686400); } - public function modifyLoginGenerate() + public function modifyLoginGenerate($start_time=0) { - $this->modifyLogin(strtotime(date("Y-m-d"))-86400); + $start_time = $start_time ? $start_time : date('Y-m-d', strtotime('-1 day')); + $this->modifyLogin(strtotime($start_time)); } /**