Commit 8948c425 authored by 赵啸非's avatar 赵啸非

修改同步事项

parent ebfabe34
...@@ -106,7 +106,8 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo ...@@ -106,7 +106,8 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File file = new File(filePath); File file = new File(filePath);
if (file.exists()) { if (file.exists()) {
try { try {
zip.putNextEntry(new ZipEntry(StrUtil.subAfter(imgPath, "/", false))); //zip.putNextEntry(new ZipEntry(StrUtil.subAfter(filePath, "/", false)));
zip.putNextEntry(new ZipEntry(filePath));
IOUtils.write(FileUtil.readBytes(file), zip); IOUtils.write(FileUtil.readBytes(file), zip);
zip.flush(); zip.flush();
zip.closeEntry(); zip.closeEntry();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment