分类去除图片必填

This commit is contained in:
lifenlong
2021-08-11 21:12:21 +08:00
parent e1ec2b9b27
commit 38124a702a
5 changed files with 26 additions and 20 deletions

View File

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