parent
7c04963b8f
commit
b08015c711
|
@ -998,6 +998,7 @@ public class ApiScenarioReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cleanUpUiReportImg(List<String> ids) {
|
public void cleanUpUiReportImg(List<String> ids) {
|
||||||
|
try {
|
||||||
if (ids != null && CollectionUtils.isNotEmpty(ids)) {
|
if (ids != null && CollectionUtils.isNotEmpty(ids)) {
|
||||||
for (String id : ids) {
|
for (String id : ids) {
|
||||||
if (FileUtil.deleteDir(new File(FileUtils.UI_IMAGE_DIR + "/" + id))) {
|
if (FileUtil.deleteDir(new File(FileUtils.UI_IMAGE_DIR + "/" + id))) {
|
||||||
|
@ -1005,5 +1006,9 @@ public class ApiScenarioReportService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
LogUtil.error(e.getMessage(), e);
|
||||||
|
MSException.throwException(e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue