Commit ddd70219 authored by 赵啸非's avatar 赵啸非

修改同步事项

parent 8948c425
......@@ -124,7 +124,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File file = new File(filePath);
if (file.exists()) {
try {
zip.putNextEntry(new ZipEntry(StrUtil.subAfter(docFileUrl, "/", false)));
zip.putNextEntry(new ZipEntry(filePath));
IOUtils.write(FileUtil.readBytes(file), zip);
zip.flush();
zip.closeEntry();
......@@ -142,7 +142,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File file = new File(filePath);
if (file.exists()) {
try {
zip.putNextEntry(new ZipEntry(StrUtil.subAfter(appFileUrl, "/", false)));
zip.putNextEntry(new ZipEntry(filePath));
IOUtils.write(FileUtil.readBytes(file), zip);
zip.flush();
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