From c59517194d5c3d2935611777926c9cf457124615 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 1 Dec 2022 17:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E8=AE=AD=E6=96=87=E5=AD=97?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=85=A8=E6=96=87=E5=8C=B9=E9=85=8D=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/services/training2/Training2Service.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java index 6f47f180b..1caf89b46 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java @@ -688,7 +688,11 @@ public class Training2Service { .reduce((m1, m2) -> m2).orElse(null); String source = String.valueOf(simOperation2.getParams().get("content")); String target = message.getContent(); - if (StrUtils.isMatch(source, target, 20)) { + if (Operation.Type.Conversation_Chat_Text.equals(simOperation2.getOperationType())) { + if (Objects.equals(source,target)) { + simOperation2.doOperated(); + } + } else if (StrUtils.isMatch(source, target, 20)) { simOperation2.doOperated(); } }