diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java index 7e5969d..b9e112c 100644 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java @@ -117,6 +117,8 @@ public class FileServiceImpl extends AbstractService implements IFileService { // 压缩图片 if (isImageFile(fileType)) { compressImage(fileFullPath); + File photo = new File(fileFullPath); + fileSize = photo.length(); } params.put("fileId", UUIDUtil.getUUID()); params.put("fileName", fileName);