fix(接口测试): 修复定时任务导入处理json失败问题

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-12-22 18:26:32 +08:00 committed by xiaomeinvG
parent 0d6fbb2df5
commit 5408737571
1 changed files with 5 additions and 3 deletions

View File

@ -67,11 +67,13 @@ public class SwaggerUrlImportJob extends MsScheduleJob {
if (CollectionUtils.isNotEmpty(arguments)) {
request.setArguments(arguments);
}
if (StringUtils.isNotBlank(configObj.optString("authManager"))) {
MsAuthManager msAuthManager = JSONUtil.parseObject(configObj.optString("authManager"), MsAuthManager.class);
if (msAuthManager != null) {
request.setAuthManager(msAuthManager);
}
}
}
}
}