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