From 1e43939e20b7b8a5c137013bbac5c72c136ff58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Thu, 25 Sep 2025 16:12:29 +0800 Subject: [PATCH] 1 --- .../ruoyi/jarvis/service/impl/InstructionServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/InstructionServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/InstructionServiceImpl.java index c4798c2..5f26960 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/InstructionServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/InstructionServiceImpl.java @@ -302,8 +302,12 @@ public class InstructionServiceImpl implements IInstructionService { if (matcher.find()) { address = new StringBuilder(matcher.group()); } - for (int i = 3; i < parts.length; i++) { - System.out.println(parts[i]); + String phone = parts[3]; + //从phoneWithTF随机拿一个出来 + phone = phoneWithTF.get(new Random().nextInt(phoneWithTF.size())); + address.append(phone); + System.out.println(address); + for (int i = 4; i < parts.length; i++) { address.append(parts[i]); } String jf = productWithJF.get(modelNumber);