Skip to content

Commit d868d8e

Browse files
authored
支持PUT请求修改json/jsonb类型字段
1 parent a740845 commit d868d8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ public void onPUTArrayParse(@NotNull String key, @NotNull JSONArray array) throw
599599
} else if (key.endsWith("-")) {//remove
600600
putType = 2;
601601
} else {//replace
602-
// throw new IllegalAccessException("PUT " + path + ", PUT Array不允许 " + key +
603-
// " 这种没有 + 或 - 结尾的key!不允许整个替换掉原来的Array!");
602+
sqlRequest.put(key, array);
603+
return;
604604
}
605605
String realKey = AbstractSQLConfig.getRealKey(method, key, false, false);
606606

0 commit comments

Comments
 (0)