fix(接口测试): 修复 post url 格式不对的问题

This commit is contained in:
Captain.B 2020-08-19 17:43:22 +08:00
parent f1b8bf4c9f
commit 9791463ead
1 changed files with 1 additions and 3 deletions

View File

@ -151,9 +151,7 @@ public class JmeterDocumentParser {
String url = parser.get("URL");
String params = parser.keySet().stream().filter(k -> !"URL".equals(k)).reduce("?", (u, k) -> {
String v = parser.get(k);
if ("?".equals(u)) {
u += "";
} else {
if (!StringUtils.equals("?", u)) {
u += "&";
}
u += k + "=" + ScriptEngineUtils.calculate(v);