This commit is contained in:
你的名字
2025-10-18 17:45:10 +08:00
parent cae99395cc
commit 2c47ae8735

View File

@ -68,7 +68,7 @@ class Login extends AdminController
$admin->save();
$admin = $admin->toArray();
unset($admin['password']);
$admin['expire_time'] = $post['keep_login'] == 1 ? 0 : time() + 7200;
$admin['expire_time'] = $post['keep_login'] == 1 ? 0 : time() + 86400;
session('admin', $admin);
$this->success('登录成功');
}