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 b324c88..4dd3ee0 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 @@ -303,9 +303,11 @@ public class InstructionServiceImpl implements IInstructionService { if (matcher.find()) { address = new StringBuilder(matcher.group()); } - String phone; + String phone = parts[3]; //从phoneWithTF随机拿一个出来 - phone = phoneWithTF.get(new Random().nextInt(phoneWithTF.size())); + if ("13243039070".equals(phone)){ + phone = phoneWithTF.get(new Random().nextInt(phoneWithTF.size())); + } address.append(phone); System.out.println(address); for (int i = 4; i < parts.length; i++) {