包含选项范围新增支持传路径,例如 key<>:{ path: "$", value:82001 }

This commit is contained in:
TommyLemon 2022-03-21 00:26:22 +08:00
parent fca75602b0
commit a3d9c90a8d
2 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ public abstract class AbstractObjectParser implements ObjectParser {
key = entry.getKey();
try {
if (key.startsWith("@") || key.endsWith("@")) {
if (key.startsWith("@") || key.endsWith("@") || (key.endsWith("<>") && value instanceof JSONObject)) {
if (onParse(key, value) == false) {
invalidate();
}

View File

@ -4487,8 +4487,8 @@ public abstract class AbstractSQLConfig implements SQLConfig {
for (String key : set) {
value = request.get(key);
if (value instanceof Map) {//只允许常规Object
throw new IllegalArgumentException("不允许 " + key + "任何key的value类型为 {JSONObject} !");
if (key.endsWith("<>") == false && value instanceof Map) {//只允许常规Object
throw new IllegalArgumentException(table + ":{ " + key + ":value } 中 value 类型错误!除了 key<>:{} 外,不允许 " + key + "其它任何 key 对应 value 的类型为 JSONObject {} !");
}
//解决AccessVerifier新增userId没有作为条件而是作为内容导致PUTDELETE出错