Commit 222489f6 authored by hujun's avatar hujun

增加登录时间

parent 87d9d511
......@@ -191,7 +191,7 @@ class Basic extends Controller
$time = time();
//登录有效期为2小时
if (($time - $this->lastLoginTime) > 7200) {
if (($time - $this->lastLoginTime) > 36000) {
$this->redirect('/index/login');
} else {
//更新时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment