pms-parent/pms-web-file/src/main/java/com/dy/dyFile/files/FileCtrl.java
@@ -71,7 +71,12 @@ }else{ zipFileInput = ZipImg.zipToJpg(fPic, photoZipWidth, photoZipWidth) ; } boolean zipOk = new FileUtil().saveFile(zipFilePath, zipFileInput) ; if(zipFileInput.available() > 0){ new FileUtil().saveFile(zipFilePath, zipFileInput) ; }else{ //如果压缩文件不存在或生成失败,则复制源文件 new FileUtil().saveFile(zipFilePath, file.getInputStream()) ; } } } }