fix(性能测试): 修复下载正在执行的测试报告错误提示 --bug=1005192 --user=刘瑞斌 【性能测试-报告】下载... https://www.tapd.cn/55049933/s/1025731
This commit is contained in:
parent
585188e5dc
commit
62016c6761
|
@ -329,7 +329,7 @@ public class PerformanceReportService {
|
|||
public void downloadJtlZip(String reportId, HttpServletResponse response) {
|
||||
LoadTestReportWithBLOBs report = getReport(reportId);
|
||||
if (StringUtils.isBlank(report.getFileId())) {
|
||||
throw new RuntimeException(Translator.get("load_test_report_file_not_exist"));
|
||||
MSException.throwException(Translator.get("load_test_report_file_not_exist"));
|
||||
}
|
||||
response.setHeader("Content-Disposition", "attachment;fileName=" + reportId + ".zip");
|
||||
try (SqlSession sqlSession = sqlSessionFactory.openSession()) {
|
||||
|
|
Loading…
Reference in New Issue