Skip to content

Commit 991b5fb

Browse files
committed
解决 REFUSE 值为 "!" 时因为没有匹配 MUST,而是匹配了 NECESSARY 导致判断出错
1 parent 5cf01bc commit 991b5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ public static JSONObject parse(@NotNull final RequestMethod method, String name,
863863
if ("!".equals(refuse)) {//所有非 must,改成 !must 更好
864864
for (String key : rkset) {//对@key放行,@role,@column,自定义@position等
865865
if (key != null && key.startsWith("@") == false
866-
&& necessaryList.contains(key) == false && objKeySet.contains(key) == false) {
866+
&& mustList.contains(key) == false && objKeySet.contains(key) == false) {
867867
refuseList.add(key);
868868
}
869869
}

0 commit comments

Comments
 (0)