fix(接口测试): GET请求url多带了&
This commit is contained in:
parent
46cab70f36
commit
29d43bee4c
|
@ -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")
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue