【实训文字输入全文匹配校验】

This commit is contained in:
weizhihong 2022-12-01 17:53:16 +08:00
parent 10374c8bbb
commit c59517194d

View File

@ -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();
}
}