【优化】忽略文件上传图片的缩略图生成的错误异常

pull/122/head
徐玉祥 2023-06-19 21:34:33 +08:00
parent d08e0a0da9
commit 8aceaf7077
1 changed files with 1 additions and 2 deletions

View File

@ -193,8 +193,7 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
try {
devFile.setThumbnail(ImgUtil.toBase64DataUri(ImgUtil.scale(ImgUtil.toImage(file.getBytes()),
100, 100, null), suffix));
} catch (IOException e) {
throw new CommonException("文件上传失败,获取文件流错误");
} catch (Exception ignored) {
}
}
}