feat: 将用户登录信息与普通缓存数据区分存储

This commit is contained in:
augushong
2025-04-22 09:03:51 +08:00
parent c1042ce1c6
commit a078c14af7
3 changed files with 16 additions and 9 deletions

View File

@@ -188,7 +188,7 @@ function get_session_admin($key = null)
{
$token = read_header_token();
if (!empty($token)) {
$admin = Cache::get($token);
$admin = Cache::store('login')->get($token);
} else {
$admin = session('admin');
}