Commit 2c7accc1 authored by 赵啸非's avatar 赵啸非

修改登录鉴权时间

parent 994dd4bc
...@@ -85,7 +85,9 @@ public class ZipUtils { ...@@ -85,7 +85,9 @@ public class ZipUtils {
log.info("********开始执行gzip"); log.info("********开始执行gzip");
TarArchiveEntry entry; TarArchiveEntry entry;
// 将 tar 文件解压到 extractPath 目录下 // 将 tar 文件解压到 extractPath 目录下
while ((entry = fin.getNextTarEntry()) != null) { while (fin.getNextTarEntry() != null) {
entry= fin.getNextTarEntry();
if(entry==null) continue;
if (entry.isDirectory()) { if (entry.isDirectory()) {
continue; continue;
} }
...@@ -97,7 +99,10 @@ public class ZipUtils { ...@@ -97,7 +99,10 @@ public class ZipUtils {
parent.mkdirs(); parent.mkdirs();
} }
// 将文件写出到解压的目录 // 将文件写出到解压的目录
if(fin!=null){
FileUtil.writeFromStream(fin,curfile); FileUtil.writeFromStream(fin,curfile);
}
//fileOutputStream = new FileOutputStream(curfile); //fileOutputStream = new FileOutputStream(curfile);
//IOUtils.copy(fin, fileOutputStream); //IOUtils.copy(fin, fileOutputStream);
//set.add(curfile.getAbsolutePath()); //set.add(curfile.getAbsolutePath());
......
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