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

修改同步事项

parent ebfabe34
......@@ -106,7 +106,8 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File file = new File(filePath);
if (file.exists()) {
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);
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