diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index 4908159df5..57e27653fe 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -390,11 +390,6 @@ public class MsHTTPSamplerProxy extends MsTestElement { this.useEnvironment = config.getConfig().get(this.getProjectId()).getApiEnvironmentid(); } String url = httpConfig.getProtocol() + "://" + httpConfig.getSocket(); - - // 补充如果是完整URL 则用自身URL - if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) { - url = this.getUrl(); - } if (isUrl()) { if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) { url = this.getUrl(); @@ -589,9 +584,6 @@ public class MsHTTPSamplerProxy extends MsTestElement { } return true; } - if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) { - return true; - } return false; }