sa-token升级:1.37.0 -> 1.38.0

This commit is contained in:
数据小王子 2024-05-13 16:27:42 +08:00
parent 08cda7b792
commit da91600948
2 changed files with 2 additions and 4 deletions

View File

@ -19,7 +19,7 @@
<java.version>21</java.version>
<spring-boot.version>3.2.5</spring-boot.version>
<mybatis-flex.version>1.8.9</mybatis-flex.version>
<satoken.version>1.37.0</satoken.version>
<satoken.version>1.38.0</satoken.version>
<HikariCP.version>5.1.0</HikariCP.version>
<bitwalker.version>1.21</bitwalker.version>
<caffeine.version>3.1.8</caffeine.version>

View File

@ -61,9 +61,7 @@ public class LoginHelper {
.setExtra(DEPT_KEY, loginUser.getDeptId())
.setExtra(DEPT_NAME_KEY, loginUser.getDeptName())
);
SaSession tokenSession = StpUtil.getTokenSession();
tokenSession.updateTimeout(model.getTimeout());
tokenSession.set(LOGIN_USER_KEY, loginUser);
StpUtil.getTokenSession().set(LOGIN_USER_KEY, loginUser);
}
/**