fix(接口定义): 修复导入的请求中端口使用变量取值拿不到值的缺陷

https://github.com/metersphere/metersphere/issues/21314
This commit is contained in:
wxg0103 2023-01-11 18:40:01 +08:00 committed by wxg0103
parent 2dd275ea22
commit 01b0570f8f
1 changed files with 0 additions and 3 deletions

View File

@ -428,9 +428,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
} }
} else { } else {
String url = this.getUrl(); String url = this.getUrl();
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
url = url.replace(this.getPort(), "10990");
}
if (StringUtils.isEmpty(url)) { if (StringUtils.isEmpty(url)) {
MSException.throwException("请重新选择环境"); MSException.throwException("请重新选择环境");
} }