From 7382b9af0b45cc3ae58a310915e807feaf0ab994 Mon Sep 17 00:00:00 2001 From: tiger_zhou <123456> Date: Tue, 11 Apr 2023 13:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/voice/discriminate/OperateParseServiceImpl.java | 3 --- 1 file changed, 3 deletions(-) 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())) {