mirror of https://gitee.com/xiaonuobase/snowy
【优化】忽略文件上传图片的缩略图生成的错误异常
parent
d08e0a0da9
commit
8aceaf7077
|
@ -193,8 +193,7 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
|
||||||
try {
|
try {
|
||||||
devFile.setThumbnail(ImgUtil.toBase64DataUri(ImgUtil.scale(ImgUtil.toImage(file.getBytes()),
|
devFile.setThumbnail(ImgUtil.toBase64DataUri(ImgUtil.scale(ImgUtil.toImage(file.getBytes()),
|
||||||
100, 100, null), suffix));
|
100, 100, null), suffix));
|
||||||
} catch (IOException e) {
|
} catch (Exception ignored) {
|
||||||
throw new CommonException("文件上传失败,获取文件流错误");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue