diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java b/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java index 4abafe5a7d..cc89221985 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java @@ -147,6 +147,10 @@ public class MsDefinitionParser extends MsAbstractParser { return; } cases.forEach(item -> { + String request = item.getRequest(); + JSONObject requestObj = JSONObject.parseObject(request); + requestObj.put("useEnvironment", ""); + item.setRequest(JSONObject.toJSONString(requestObj)); item.setApiDefinitionId(apiDefinition.getId()); item.setProjectId(importRequest.getProjectId()); });