diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2ad74be..64d1525 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -27,7 +27,7 @@ ### Remarks -- +- 补丁需要触发一次登录或者刷新才会生效,删除`profile/{user}/cache`文件夹可触发 ## v2.0.1.220911 alpha (2022-09-11) diff --git a/src/Helpers.php b/src/Helpers.php index 7f8cd66..8670fa3 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -68,7 +68,7 @@ function getEnable(string $key, bool $default = false): bool function getU(string $key): mixed { $value = ''; - $fillable = ['username', 'password', 'uid', 'csrf', 'cookie', 'access_token', 'refresh_token', 'sid']; + $fillable = ['username', 'password', 'uid', 'csrf', 'cookie', 'access_token', 'refresh_token', 'sid', 'pc_cookie']; if (in_array($key, $fillable)) { $value = Cache::get('auth_' . $key, 'Login'); } @@ -83,7 +83,7 @@ function getU(string $key): mixed */ function setU(string $key, mixed $value): void { - $fillable = ['username', 'password', 'uid', 'csrf', 'cookie', 'access_token', 'refresh_token', 'sid']; + $fillable = ['username', 'password', 'uid', 'csrf', 'cookie', 'access_token', 'refresh_token', 'sid', 'pc_cookie']; if (in_array($key, $fillable)) { Cache::set('auth_' . $key, $value, 'Login'); }