123
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.service.SensitiveService;
|
||||
import com.ruoyi.common.helper.LoginHelper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -15,12 +14,22 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SysSensitiveServiceImpl implements SensitiveService {
|
||||
|
||||
private static volatile boolean SENSITIVE = false;
|
||||
|
||||
@Override
|
||||
public void setSensitive(boolean sensitive){
|
||||
SENSITIVE = sensitive;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否脱敏
|
||||
*/
|
||||
@Override
|
||||
public boolean isSensitive() {
|
||||
return !LoginHelper.isAdmin();
|
||||
/*if(LoginHelper.isAdmin()){
|
||||
return false;
|
||||
}*/
|
||||
return SENSITIVE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user