From 8d719d00866d83374ecc88d34511eab1961f8a60 Mon Sep 17 00:00:00 2001 From: ricky Date: Fri, 22 Jul 2022 13:04:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(appAuth):=20=E4=BF=AE=E6=94=B9APP=E7=AB=AF?= =?UTF-8?q?=E9=AA=8C=E8=AF=81token=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Account/Services/Auth/AppAuthentication.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Account/Services/Auth/AppAuthentication.php b/src/Account/Services/Auth/AppAuthentication.php index 91e66a2..bb5f4c0 100644 --- a/src/Account/Services/Auth/AppAuthentication.php +++ b/src/Account/Services/Auth/AppAuthentication.php @@ -50,9 +50,7 @@ class AppAuthentication implements AuthenticationInterface } $user = unserialize($redis_data); - if (empty($this->user) || $user['last_time'] != $this->user['last_time']) { - $this->user = $user; - } + $this->user = $user; $this->redis->expire($this->prefix . $token, $this->expire);