diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java index e687a59304..8d69beb488 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java @@ -157,7 +157,7 @@ public class MsLoopController extends MsTestElement { value = ""; } ms_current_timer = UUID.randomUUID().toString(); - return "${__jexl3(" + variable + operator + value + ")}"; + return variable + operator + value; } private IfController ifController(String condition) { diff --git a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java index 50255fa4dc..238bc9ec13 100644 --- a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java +++ b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java @@ -110,7 +110,7 @@ public class DocumentUtils { } else if (!(subj instanceof Double) && !(subj instanceof Float)) { str = subj.toString(); } else { - str = ((DecimalFormat) decimalFormatter.get()).format(subj); + str = decimalFormatter.get().format(subj); } return str; }