fix(session): 修复了写反的存储逻辑

This commit is contained in:
李东云
2023-07-05 18:25:11 +08:00
parent 0c62c7ce81
commit bfbfc7f721

View File

@@ -68,7 +68,7 @@ class SessionMiddleware implements MiddlewareInterface
* *
* (除非重写整套 RedisHandler/RedisHandlerFactory/... * (除非重写整套 RedisHandler/RedisHandlerFactory/...
*/ */
if (!$this->auth($session)) { if ($this->auth($session)) {
$this->sessionManager->end($session); $this->sessionManager->end($session);
} }
} }