Explorar o código

1.影像修改

wks %!s(int64=2) %!d(string=hai) anos
pai
achega
eb8d6e5fca

+ 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)) {
             if (FileType.IMAGE.getType().equals(type)) {
                 // 图片格式需要压缩.
-                multipartFile.transferTo(new File(uploadPath));
                 byte[] compressPicByte = ImageCompressionUtils.compressPic(multipartFile.getInputStream(), suffix, uploadFilePath);
 //                byte[] bytes = ImageCompressionUtils.compressPicForScale(compressPicByte, 100);
                 fileOutputStream.write(compressPicByte);