feat(环境设置): 修复全局认证关不掉的问题
--bug=1008061 --user=宋天阳 【系统设置】项目环境,全局认证关不掉【+github#7811】 https://www.tapd.cn/55049933/s/1071776
This commit is contained in:
parent
473e6577c5
commit
f812c41a7a
|
@ -374,8 +374,10 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
try {
|
try {
|
||||||
JSONObject authObject = environmentConfig.getAuthManager().getJSONObject("authManager");
|
JSONObject authObject = environmentConfig.getAuthManager().getJSONObject("authManager");
|
||||||
if (authObject != null) {
|
if (authObject != null) {
|
||||||
|
if (authObject.containsKey("verification") && !StringUtils.equalsIgnoreCase(authObject.getString("verification"), "No Auth")) {
|
||||||
this.authManager = authObject.toJavaObject(MsAuthManager.class);
|
this.authManager = authObject.toJavaObject(MsAuthManager.class);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue