fix(接口测试): 修复 post url 格式不对的问题
This commit is contained in:
parent
f1b8bf4c9f
commit
9791463ead
|
@ -151,9 +151,7 @@ public class JmeterDocumentParser {
|
||||||
String url = parser.get("URL");
|
String url = parser.get("URL");
|
||||||
String params = parser.keySet().stream().filter(k -> !"URL".equals(k)).reduce("?", (u, k) -> {
|
String params = parser.keySet().stream().filter(k -> !"URL".equals(k)).reduce("?", (u, k) -> {
|
||||||
String v = parser.get(k);
|
String v = parser.get(k);
|
||||||
if ("?".equals(u)) {
|
if (!StringUtils.equals("?", u)) {
|
||||||
u += "";
|
|
||||||
} else {
|
|
||||||
u += "&";
|
u += "&";
|
||||||
}
|
}
|
||||||
u += k + "=" + ScriptEngineUtils.calculate(v);
|
u += k + "=" + ScriptEngineUtils.calculate(v);
|
||||||
|
|
Loading…
Reference in New Issue