【实训文字输入全文匹配校验】
This commit is contained in:
parent
10374c8bbb
commit
c59517194d
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user