fix: mockjs导致参数错误
This commit is contained in:
parent
678b9a6a3a
commit
f453226c3b
|
@ -100,7 +100,7 @@ public class Body {
|
||||||
if(value instanceof JSONObject) {
|
if(value instanceof JSONObject) {
|
||||||
jsonMockParse((JSONObject) value);
|
jsonMockParse((JSONObject) value);
|
||||||
} else if(value instanceof String) {
|
} else if(value instanceof String) {
|
||||||
if (StringUtils.isNotBlank((String) value)) {
|
if (StringUtils.isNotBlank((String) value) && ((String) value).trim().startsWith("@")) {
|
||||||
value = ScriptEngineUtils.calculate((String) value);
|
value = ScriptEngineUtils.calculate((String) value);
|
||||||
}
|
}
|
||||||
jsonObject.put(key, value);
|
jsonObject.put(key, value);
|
||||||
|
|
Loading…
Reference in New Issue