diff --git a/backend/src/main/java/io/metersphere/api/dto/scenario/Body.java b/backend/src/main/java/io/metersphere/api/dto/scenario/Body.java index b86f1d48b0..ee25b769a0 100644 --- a/backend/src/main/java/io/metersphere/api/dto/scenario/Body.java +++ b/backend/src/main/java/io/metersphere/api/dto/scenario/Body.java @@ -100,7 +100,7 @@ public class Body { if(value instanceof JSONObject) { jsonMockParse((JSONObject) value); } else if(value instanceof String) { - if (StringUtils.isNotBlank((String) value)) { + if (StringUtils.isNotBlank((String) value) && ((String) value).trim().startsWith("@")) { value = ScriptEngineUtils.calculate((String) value); } jsonObject.put(key, value);