fix(接口测试): GET请求url多带了&

This commit is contained in:
chenjianxing 2020-08-28 19:24:13 +08:00
parent 46cab70f36
commit 29d43bee4c
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class APITestController {
@PostMapping(value = "/update", consumes = {"multipart/form-data"}) @PostMapping(value = "/update", consumes = {"multipart/form-data"})
public void update(@RequestPart("request") SaveAPITestRequest request, @RequestPart(value = "file") MultipartFile file, @RequestPart(value = "files") List<MultipartFile> bodyFiles) { public void update(@RequestPart("request") SaveAPITestRequest request, @RequestPart(value = "file") MultipartFile file, @RequestPart(value = "files") List<MultipartFile> bodyFiles) {
apiTestService.update(request, file, bodyFiles); apiTestService.update(request, file, bodyFiles);
} }
@PostMapping(value = "/copy") @PostMapping(value = "/copy")

View File

@ -157,7 +157,7 @@ public class JmeterDocumentParser {
u += k + "=" + ScriptEngineUtils.calculate(v); u += k + "=" + ScriptEngineUtils.calculate(v);
return u; return u;
}); });
ele.setTextContent(url + params); ele.setTextContent(url + ((params != null && !params.equals("?")) ? params : ""));
break; break;
case "Argument.value": case "Argument.value":
String textContent = ele.getTextContent(); String textContent = ele.getTextContent();