fix: mockjs导致参数错误

This commit is contained in:
chenjianxing 2021-07-12 11:05:00 +08:00 committed by jianxing
parent 678b9a6a3a
commit f453226c3b
1 changed files with 1 additions and 1 deletions

View File

@ -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);