|
|
@@ -370,20 +370,16 @@ public class CaseDownService {
|
|
|
}
|
|
|
ShellUtil.yunDownload(uri.replace(queryPath, ""), kkzipPath);
|
|
|
ShellUtil.unZip(kkzipPath,kknumPath);
|
|
|
+ FileUtil.del(kkzipPath);
|
|
|
|
|
|
}else {
|
|
|
ShellUtil.yunDownloadSs(uri.replace(ssQueryPath, ""), sszipPath);
|
|
|
ShellUtil.unZip(sszipPath,ssNumPath);
|
|
|
+ FileUtil.del(sszipPath);
|
|
|
+
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
log.info("下载场景离线包失败:{}",uri,e);
|
|
|
- }finally {
|
|
|
- if(kkzipPath != null && new File(kkzipPath).exists()){
|
|
|
- new File(kkzipPath).delete();
|
|
|
- }
|
|
|
- if(sszipPath != null && new File(sszipPath).exists()){
|
|
|
- new File(sszipPath).delete();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
}
|