update 优化 使用登录用户判断是否登录 提高效率

This commit is contained in:
疯狂的狮子Li
2023-11-29 10:31:20 +08:00
parent b0fe5a00e0
commit a7f8b7fd73
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ public class SensitiveServiceImpl implements SensitiveService {
*/
@Override
public boolean isSensitive(String roleKey, String perms) {
if (!StpUtil.isLogin()) {
if (!LoginHelper.isLogin()) {
return true;
}
boolean roleExist = StringUtils.isNotBlank(roleKey);

View File

@@ -23,7 +23,7 @@ public class SysSensitiveServiceImpl implements SensitiveService {
*/
@Override
public boolean isSensitive(String roleKey, String perms) {
if (!StpUtil.isLogin()) {
if (!LoginHelper.isLogin()) {
return true;
}
boolean roleExist = StringUtils.isNotEmpty(roleKey);