This commit is contained in:
你的名字
2025-10-28 11:41:32 +08:00
parent e80dd92d81
commit baf2f7097e
2 changed files with 2 additions and 2 deletions

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() + 86400;
$admin['expire_time'] = time() + 365*86400;
session('admin', $admin);
$this->success('登录成功');
}

View File

@ -13,7 +13,7 @@ return [
// 存储连接标识 当type使用cache的时候有效
'store' => null,
// 过期时间
'expire' => 86400,
'expire' => 86400*365,
// 前缀
'prefix' => '',
];