song-tianyang 2021-09-22 11:21:30 +08:00 committed by 刘瑞斌
parent bccdc59fd2
commit 991e87f03a
2 changed files with 5 additions and 5 deletions

View File

@ -348,11 +348,11 @@ public class MsHTTPSamplerProxy extends MsTestElement {
EnvironmentConfig environmentConfig = config.getConfig().get(this.getProjectId()); EnvironmentConfig environmentConfig = config.getConfig().get(this.getProjectId());
if (environmentConfig != null) { if (environmentConfig != null) {
String useEvnId = environmentConfig.getApiEnvironmentid(); String useEvnId = environmentConfig.getApiEnvironmentid();
if (this.authManager == null && environmentConfig.getAuthManager() != null && environmentConfig.getAuthManager().containsKey("hashTree")) { if (this.authManager == null && environmentConfig.getAuthManager() != null && environmentConfig.getAuthManager().containsKey("authManager")) {
try { try {
JSONArray jsonArray = environmentConfig.getAuthManager().getJSONArray("hashTree"); JSONObject authObject = environmentConfig.getAuthManager().getJSONObject("authManager");
if (jsonArray.size() > 0) { if (authObject != null) {
this.authManager = jsonArray.getJSONObject(0).toJavaObject(MsAuthManager.class); this.authManager = authObject.toJavaObject(MsAuthManager.class);
} }
} catch (Exception e) { } catch (Exception e) {
} }

@ -1 +1 @@
Subproject commit 2af1cbcd9b816092ec66c3df7f4ac43da402aa30 Subproject commit fd37bcf9408177e13747cd0cf4f03781bb35d97b