فهرست منبع

1.影像修改

wks 2 سال پیش
والد
کامیت
eb8d6e5fca
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      src/main/java/com/ydtech/modules/order/service/impl/InsUploadFilesServiceImpl.java

+ 0 - 1
src/main/java/com/ydtech/modules/order/service/impl/InsUploadFilesServiceImpl.java

@@ -82,7 +82,6 @@ public class InsUploadFilesServiceImpl extends ServiceImpl<InsUploadFilesMapper,
         try (FileOutputStream fileOutputStream = new FileOutputStream(file)) {
         try (FileOutputStream fileOutputStream = new FileOutputStream(file)) {
             if (FileType.IMAGE.getType().equals(type)) {
             if (FileType.IMAGE.getType().equals(type)) {
                 // 图片格式需要压缩.
                 // 图片格式需要压缩.
-                multipartFile.transferTo(new File(uploadPath));
                 byte[] compressPicByte = ImageCompressionUtils.compressPic(multipartFile.getInputStream(), suffix, uploadFilePath);
                 byte[] compressPicByte = ImageCompressionUtils.compressPic(multipartFile.getInputStream(), suffix, uploadFilePath);
 //                byte[] bytes = ImageCompressionUtils.compressPicForScale(compressPicByte, 100);
 //                byte[] bytes = ImageCompressionUtils.compressPicForScale(compressPicByte, 100);
                 fileOutputStream.write(compressPicByte);
                 fileOutputStream.write(compressPicByte);