Compare commits

..

No commits in common. "49c00e162b95060d9714a1b607d08f3af8a98322" and "84f17011adbf0da48cba67b5878b06dbc8e3f5d4" have entirely different histories.

4 changed files with 8 additions and 14 deletions

View File

@ -74,9 +74,7 @@ public class PlusSaTokenDao implements SaTokenDaoBySessionFollowObject {
*/
@Override
public void delete(String key) {
if (RedisUtils.deleteObject(key)) {
CAFFEINE.invalidate(key);
}
RedisUtils.deleteObject(key);
}
/**
@ -153,9 +151,7 @@ public class PlusSaTokenDao implements SaTokenDaoBySessionFollowObject {
*/
@Override
public void deleteObject(String key) {
if (RedisUtils.deleteObject(key)) {
CAFFEINE.invalidate(key);
}
RedisUtils.deleteObject(key);
}
/**

View File

@ -207,8 +207,7 @@ public class LoginHelper {
*/
public static boolean isLogin() {
try {
StpUtil.checkLogin();
return true;
return getLoginUser() != null;
} catch (Exception e) {
return false;
}

View File

@ -21,6 +21,11 @@
<artifactId>ruoyi-common-json</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-redis</artifactId>
</dependency>
<!-- SpringBoot Web容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@ -53,12 +53,6 @@
<artifactId>velocity-engine-core</artifactId>
</dependency>
<dependency>
<groupId>org.anyline</groupId>
<artifactId>anyline-environment-spring-data-jdbc</artifactId>
<version>${anyline.version}</version>
</dependency>
<dependency>
<groupId>org.anyline</groupId>
<artifactId>anyline-data-jdbc-mysql</artifactId>