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 9f768d05e3
commit 3009ab4711
1 changed files with 0 additions and 3 deletions

View File

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