mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-10 03:42:49 +08:00
feat: 将用户登录信息与普通缓存数据区分存储
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user