fix(接口定义): 修复导入的请求中端口使用变量取值拿不到值的缺陷
https://github.com/metersphere/metersphere/issues/21314
This commit is contained in:
parent
2dd275ea22
commit
01b0570f8f
|
@ -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("请重新选择环境");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue