mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
#IBQEYU 使用 AccessToken 验证身份报错session is null
This commit is contained in:
parent
0ef0a299d6
commit
4ac2fb8778
@ -119,11 +119,13 @@ public class InMemorySessionManager implements SessionManager{
|
||||
@Override
|
||||
public void visited(String sessionId, VisitedDto visited) {
|
||||
Session session = this.get(sessionId);
|
||||
//set token or ticket to Visited , bind user session
|
||||
session.visited(visited);
|
||||
//override the session
|
||||
this.create(sessionId, session);
|
||||
_logger.debug("session {} store visited {} ." , sessionId , visited);
|
||||
if(session != null) {
|
||||
//set token or ticket to Visited , bind user session
|
||||
session.visited(visited);
|
||||
//override the session
|
||||
this.create(sessionId, session);
|
||||
_logger.debug("session {} store visited {} ." , sessionId , visited);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -141,12 +141,13 @@ public class RedisSessionManager implements SessionManager {
|
||||
@Override
|
||||
public void visited(String sessionId, VisitedDto visited) {
|
||||
Session session = this.get(sessionId);
|
||||
//set token or ticket to Visited , bind user session
|
||||
session.visited(visited);
|
||||
//override the session
|
||||
this.create(sessionId, session);
|
||||
_logger.debug("session {} store visited {} ." , sessionId , visited);
|
||||
|
||||
if(session != null) {
|
||||
//set token or ticket to Visited , bind user session
|
||||
session.visited(visited);
|
||||
//override the session
|
||||
this.create(sessionId, session);
|
||||
_logger.debug("session {} store visited {} ." , sessionId , visited);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user