diff --git a/src/main/java/club/joylink/rtss/services/voice/discriminate/OperateParseServiceImpl.java b/src/main/java/club/joylink/rtss/services/voice/discriminate/OperateParseServiceImpl.java index b2f707c2c..292b99128 100644 --- a/src/main/java/club/joylink/rtss/services/voice/discriminate/OperateParseServiceImpl.java +++ b/src/main/java/club/joylink/rtss/services/voice/discriminate/OperateParseServiceImpl.java @@ -45,9 +45,7 @@ public class OperateParseServiceImpl implements VoiceTransactionalService { } // 参数解析 List paramExtractResults = result.getParamExtractResultList(); -// paramExtractResults.stream().collect(Collectors.toMap()) Map paramExtractResultMap = IntStream.range(0,paramExtractResults.size()).boxed().collect(Collectors.toMap(i->++i,paramExtractResults::get)); - OperateResult operateResult = new OperateResult(operateRule.getType()); int paramSize = paramExtractResults.size(); for (CommandParamRule paramRule : operateRule.getParamRules()) { @@ -58,7 +56,6 @@ public class OperateParseServiceImpl implements VoiceTransactionalService { // 参数处理出错 return; } -// paramArr[index] = paramExtractResults.get(paramRuleIndex); paramArr[index] = paramExtractResultMap.get(paramRuleIndex); } if (StringUtils.hasText(paramRule.getName())) {