fix: 自定义请求引用环境无效

This commit is contained in:
chenjianxing 2021-05-19 09:44:32 +08:00 committed by BugKing
parent 08c9c1d5b8
commit b8be6cdda8
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
LogUtil.error(e.getMessage(), e);
}
} else {
if (!isCustomizeReq()) {
if (!isCustomizeReq() || isRefEnvironment) {
//1.9 增加对Mock环境的判断
if (this.isMockEnvironment()) {
url = httpConfig.getProtocol() + "://" + httpConfig.getSocket() + "/mock/" + this.getProjectId();