|
@@ -126,6 +126,9 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
String buildLogPath = "/oss/4dkankan/build_log/" + num;
|
|
|
String zipName = num+".zip";
|
|
|
|
|
|
+ if(!new File(buildLogPath).exists()){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
List<SceneBuildProcessLog> listProcessLog = sceneBuildProcessLogService.getByNum(num);
|
|
|
List<BuildLog> listBuildLog = buildLogService.getByNum(num);
|
|
|
|
|
@@ -136,6 +139,10 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
excelService.commonExport(listBuildLog,BuildLog.class,buildLogPath +"/build.xlsx");
|
|
|
}
|
|
|
ShellUtil.zip(buildLogPath,zipName);
|
|
|
+
|
|
|
+ if(!new File(buildLogPath +"/" + zipName).exists()){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
return buildLogPath.replace("4dkankan/","") +"/"+zipName;
|
|
|
}
|
|
|
}
|