From 6154bd17655ef150c3000078744e9b9760e04c4d Mon Sep 17 00:00:00 2001 From: chenzhiguo Date: Thu, 19 Dec 2024 15:59:49 +0800 Subject: [PATCH] Modify the label to match the logic of IN --- .../java/com/jd/live/agent/governance/rule/OpType.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/rule/OpType.java b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/rule/OpType.java index 8aac89f82..54caa1bd1 100644 --- a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/rule/OpType.java +++ b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/rule/OpType.java @@ -111,11 +111,11 @@ public boolean isMatch(List values, List args) { return false; } for (String value : values) { - if (!args.contains(value)) { - return false; + if (args.contains(value)) { + return true; } } - return true; + return false; } }, @@ -202,7 +202,7 @@ public boolean isMatch(List values, List args) { * for this operation type. * * @param values the list of values to match against - * @param args the list of arguments to test for a match + * @param args the list of arguments to test for a match * @return true if the argument matches the criteria, false otherwise */ public boolean isMatch(List values, List args) {