系统设置使用缓存代理,不再直接读取数据库

This commit is contained in:
Chopper
2021-05-21 11:11:41 +08:00
parent 1c95a56f44
commit 3b21fede61
5 changed files with 6 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ public class UploadController {
if (authUser == null) {
throw new ServiceException(ResultCode.USER_AUTHORITY_ERROR);
}
Setting setting = settingService.getById(SettingEnum.OSS_SETTING.name());
Setting setting = settingService.get(SettingEnum.OSS_SETTING.name());
if (setting == null || StrUtil.isBlank(setting.getSettingValue())) {
throw new ServiceException(ResultCode.OSS_NOT_EXIST);
}