!35 update sa-token-core/src/main/java/cn/dev33/satoken/session/SaSessionCustomUtil.java.getSessionById

Merge pull request !35 from xingenhi/N/A
This commit is contained in:
省长 2021-04-21 18:57:10 +08:00 committed by Gitee
commit d139bfd858

View File

@ -45,7 +45,7 @@ public class SaSessionCustomUtil {
public static SaSession getSessionById(String sessionId, boolean isCreate) {
SaSession session = SaTokenManager.getSaTokenDao().getSession(splicingSessionKey(sessionId));
if (session == null && isCreate) {
session = SaTokenManager.getSaTokenAction().createSession(sessionId);
session = SaTokenManager.getSaTokenAction().createSession(splicingSessionKey(sessionId));
SaTokenManager.getSaTokenDao().setSession(session, SaTokenManager.getConfig().getTimeout());
}
return session;