From df6234790e1bdc421cd6bfad62ba96582edbb9c0 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Mon, 9 Sep 2019 20:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=9B=BE=E7=89=87=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cm/common/plugin/service/file/impl/FileServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) 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);