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