This commit is contained in:
张良(004796)
2024-01-04 19:50:21 +08:00
parent 744f16694f
commit 69aa1c97d2
7 changed files with 213 additions and 1 deletions

View File

@@ -105,10 +105,13 @@ public class SystemConfigManager {
public void setSystemConfig(SystemConfigEnum systemConfig,String value){
redisTemplate.opsForHash().put(RedisConstant.SYSTEM_CONFIG, systemConfig.name(),value);
this.set(systemConfig.name(),value);
}
public void set(String key, String value) {
if(key.equals(SystemConfigEnum.SENSITIVE_ENABLE.getKey())){
sensitiveService.setSensitive(value.equals("1"));
}
redisTemplate.opsForHash().put(RedisConstant.SYSTEM_CONFIG, key,value);
}
}