提交 fadedc03 authored 作者: 任建彩's avatar 任建彩

feat:打包文件名

1.file
上级 753c2706
......@@ -51,7 +51,7 @@ public class ZipUtil {
for (FileInfo file : list) {
String filePath = rootPath + file.getPath() + "/" + file.getFileName() + file.getSuffixName();
File sourceFile = new File(filePath);
String fileName=file.getOriginalFileName() + file.getSuffixName();
String fileName=file.getOriginalFileName();
//compress(out, sourceFile, sourceFile.getName());
compress(out, sourceFile, fileName);
}
......@@ -70,7 +70,7 @@ public class ZipUtil {
for (FileInfo file : list) {
String filePath = rootPath + file.getPath() + "/" + file.getFileName() + file.getSuffixName();
File sourceFile = new File(filePath);
String fileName=file.getOriginalFileName() + file.getSuffixName();
String fileName=file.getOriginalFileName();
//compress(out, sourceFile, sourceFile.getName());
compress(out, sourceFile, fileName);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论