wugg há 9 meses atrás
pai
commit
bffcefc663
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/common/token/driver/Redis.php

+ 3 - 3
app/common/token/driver/Redis.php

@@ -53,7 +53,7 @@ class Redis extends Driver
             $expire = $this->options['expire'];
         }
         $expiretime = $expire !== 0 ? time() + $expire : 0;
-        $token      = $this->getEncryptedToken($token);
+//        $token      = $this->getEncryptedToken($token);
         $tokenInfo  = [
             'token'      => $token,
             'type'       => $type,
@@ -78,8 +78,8 @@ class Redis extends Driver
 
     public function get(string $token, bool $expirationException = true): array
     {
-        $key  = $this->getEncryptedToken($token);
-        $data = $this->handler->get($key);
+//        $key  = $this->getEncryptedToken($token);
+        $data = $this->handler->get($token);
         if (is_null($data) || false === $data) {
             return [];
         }