Commit 0b0df184 authored by Du Xingdong's avatar Du Xingdong

解决印章申请,下载zip后在国产机解压没有权限打开

parent 9f3d4d46
...@@ -41,11 +41,13 @@ public class CompressUtil { ...@@ -41,11 +41,13 @@ public class CompressUtil {
FileInputStream fis = new FileInputStream(sourceFile); FileInputStream fis = new FileInputStream(sourceFile);
if (keepDirStructure != null && keepDirStructure) { if (keepDirStructure != null && keepDirStructure) {
ZipEntry zipEntry = new ZipEntry(relativePath); ZipEntry zipEntry = new ZipEntry(relativePath);
zipEntry.setUnixMode(644); //zipEntry.setUnixMode(644);
zipEntry.setUnixMode(0777);
zos.putNextEntry(zipEntry); zos.putNextEntry(zipEntry);
} else { } else {
ZipEntry zipEntry = new ZipEntry(i + "_" + relativeName); ZipEntry zipEntry = new ZipEntry(i + "_" + relativeName);
zipEntry.setUnixMode(644); //zipEntry.setUnixMode(644);
zipEntry.setUnixMode(0777);
zos.putNextEntry(zipEntry); zos.putNextEntry(zipEntry);
} }
int len; int len;
......
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