处理图片压缩异常问题

This commit is contained in:
wenc000 2019-09-09 20:53:41 +08:00
parent 1b92cc0047
commit df6234790e

View File

@ -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);