This commit is contained in:
xy
2026-01-12 09:36:47 +08:00
parent 5ff8c946aa
commit ee87ffb0d4

View File

@@ -117,7 +117,7 @@ public class CsElementServiceImpl extends ServiceImpl<CsElementMapper, CsElement
try {
Map<String, String> filePathMap = list.stream().filter(r -> StringUtils.isNotBlank(r.getPath())).collect(Collectors.toMap(CsElement::getId, CsElement::getPath));
// 创建临时文件
File zipFile = File.createTempFile(name, ".zip");
File zipFile = File.createTempFile("zip_" + name, ".zip");
FileOutputStream f = new FileOutputStream(zipFile);
CheckedOutputStream csum = new CheckedOutputStream(f, new Adler32());
// 用于将数据压缩成Zip文件格式