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

2.X
疯狂的狮子Li 1 year ago
parent b0fe5a00e0
commit a7f8b7fd73

@ -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);

@ -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);

Loading…
Cancel
Save