update 优化 使用登录用户判断是否登录 提高效率
parent
b0fe5a00e0
commit
a7f8b7fd73
|
|
@ -22,7 +22,7 @@ public class SensitiveServiceImpl implements SensitiveService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isSensitive(String roleKey, String perms) {
|
public boolean isSensitive(String roleKey, String perms) {
|
||||||
if (!StpUtil.isLogin()) {
|
if (!LoginHelper.isLogin()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
boolean roleExist = StringUtils.isNotBlank(roleKey);
|
boolean roleExist = StringUtils.isNotBlank(roleKey);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ public class SysSensitiveServiceImpl implements SensitiveService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isSensitive(String roleKey, String perms) {
|
public boolean isSensitive(String roleKey, String perms) {
|
||||||
if (!StpUtil.isLogin()) {
|
if (!LoginHelper.isLogin()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
boolean roleExist = StringUtils.isNotEmpty(roleKey);
|
boolean roleExist = StringUtils.isNotEmpty(roleKey);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue