|
|
@ -48,7 +48,11 @@ public class CMDService { |
|
|
|
Map<String, Object> params; |
|
|
|
if (ctrlFuncStep.getParams() == null) { // 如果没有参数定义,使用传入的参数 |
|
|
|
try { |
|
|
|
params = (Map<String, Object>) paramsList.get(index); |
|
|
|
if(paramsList.size() == 1){ |
|
|
|
params = (Map<String, Object>) paramsList.get(0); |
|
|
|
}else{ |
|
|
|
params = (Map<String, Object>) paramsList.get(index); |
|
|
|
} |
|
|
|
} catch (IndexOutOfBoundsException e) { |
|
|
|
log.error("指令执行错误,传参错误: {}", JSONUtil.toJsonStr(cmdForm)); |
|
|
|
executionResult.setStatus(CMDResultCode.FAILURE.getCode()); |
|
|
|