Skip to content

Commit

Permalink
解决 REFUSE 值为 "!" 时因为没有匹配 MUST,而是匹配了 NECESSARY 导致判断出错
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Dec 26, 2020
1 parent 5cf01bc commit 991b5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion APIJSONORM/src/main/java/apijson/orm/AbstractVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ public static JSONObject parse(@NotNull final RequestMethod method, String name,
if ("!".equals(refuse)) {//所有非 must,改成 !must 更好
for (String key : rkset) {//对@key放行,@role,@column,自定义@position等
if (key != null && key.startsWith("@") == false
&& necessaryList.contains(key) == false && objKeySet.contains(key) == false) {
&& mustList.contains(key) == false && objKeySet.contains(key) == false) {
refuseList.add(key);
}
}
Expand Down

0 comments on commit 991b5fb

Please sign in to comment.