parent
7c04963b8f
commit
b08015c711
|
@ -997,13 +997,18 @@ public class ApiScenarioReportService {
|
||||||
return apiScenarioReportStructureService.selectReportContent(stepId);
|
return apiScenarioReportStructureService.selectReportContent(stepId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cleanUpUiReportImg(List<String> ids){
|
public void cleanUpUiReportImg(List<String> ids) {
|
||||||
if(ids != null && CollectionUtils.isNotEmpty(ids)){
|
try {
|
||||||
for(String id : ids){
|
if (ids != null && CollectionUtils.isNotEmpty(ids)) {
|
||||||
if(FileUtil.deleteDir(new File(FileUtils.UI_IMAGE_DIR + "/" + id))){
|
for (String id : ids) {
|
||||||
LogUtil.info("删除 UI 报告截图成功,报告 ID 为 :" + id);
|
if (FileUtil.deleteDir(new File(FileUtils.UI_IMAGE_DIR + "/" + id))) {
|
||||||
|
LogUtil.info("删除 UI 报告截图成功,报告 ID 为 :" + id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
LogUtil.error(e.getMessage(), e);
|
||||||
|
MSException.throwException(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue