diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 8b48e4df40..586668de5d 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -1475,10 +1475,10 @@ public class ApiDefinitionService { content.put("envName", this.getEnvNameByEnvConfig(result.getProjectId(), result.getEnvConfig())); } contentStr = content.toString(); + reportResult.setContent(contentStr); } catch (Exception e) { LogUtil.error("解析content失败!", e); } - reportResult.setContent(contentStr); return reportResult; }