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

修改登录鉴权时间

parent ed3258b1
......@@ -74,8 +74,10 @@ public class ZipUtils {
*/
public static Set<String> unGzip(InputStream inputStream, String unZipPath) {
Set<String> set = new HashSet<>();
TarArchiveInputStream fin =null;
try {
TarArchiveInputStream fin = new TarArchiveInputStream(new GzipCompressorInputStream(inputStream));
fin = new TarArchiveInputStream(new GzipCompressorInputStream(inputStream));
log.info("********开始执行gzip");
TarArchiveEntry entry;
// 将 tar 文件解压到 extractPath 目录下
......@@ -98,6 +100,13 @@ public class ZipUtils {
} catch (IOException e) {
log.error("解压tar.gz文件失败", e);
}finally {
try {
inputStream.close();
fin.close();
} catch (IOException e) {
log.error("关闭流失败", e);
}
}
if (localFiles == null) {
localFiles = set;
......
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