|
|
|
@ -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
|
|
|
|
|