mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-08 11:37:27 +08:00
[yggdrasil-api] remove unserialize
This commit is contained in:
parent
9d1e8ff24c
commit
ae7b46572b
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yggdrasil-api",
|
||||
"version": "4.7.0",
|
||||
"version": "4.7.1",
|
||||
"title": "Yggdrasil API",
|
||||
"description": "Yggdrasil API + authlib-injector = ✨",
|
||||
"author": "printempw",
|
||||
|
@ -46,9 +46,8 @@ class Token
|
||||
*/
|
||||
public static function lookup(string $accessToken)
|
||||
{
|
||||
$cache = Cache::get("TOKEN_$accessToken");
|
||||
if ($cache) {
|
||||
$token = unserialize($cache);
|
||||
$token = Cache::get("TOKEN_$accessToken");
|
||||
if ($token) {
|
||||
if ($token->isRefreshable()) {
|
||||
return $token;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user