|
|
@@ -76,8 +76,8 @@ public class InsUploadFilesServiceImpl extends ServiceImpl<InsUploadFilesMapper,
|
|
|
if (FileType.IMAGE.getType().equals(type)) {
|
|
|
// 图片格式需要压缩
|
|
|
byte[] compressPicByte = ImageCompressionUtils.compressPic(multipartFile.getInputStream(), suffix, uploadFilePath);
|
|
|
- byte[] bytes = ImageCompressionUtils.compressPicForScale(compressPicByte, 100);
|
|
|
- fileOutputStream.write(bytes);
|
|
|
+// byte[] bytes = ImageCompressionUtils.compressPicForScale(compressPicByte, 100);
|
|
|
+ fileOutputStream.write(compressPicByte);
|
|
|
} else {
|
|
|
fileOutputStream.write(multipartFile.getBytes());
|
|
|
}
|