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

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

View File

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