Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ else if ((method == POST || method == PUT) && value instanceof JSONArray
&& JSONRequest.isTableArray(key)) { // JSONArray,批量新增或修改,往下一级提取
onTableArrayParse(key, (JSONArray) value);
}
else if (method == PUT && value instanceof JSONArray
&& (whereList == null || whereList.contains(key) == false)) { // PUT JSONArray
else if (method == PUT && value instanceof JSONArray && (whereList == null || whereList.contains(key) == false) && StringUtil.isName(key.replaceFirst("[+-]$", "")))
{ // PUT JSONArray
onPUTArrayParse(key, (JSONArray) value);
}
else { // JSONArray或其它Object,直接填充
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3127,7 +3127,7 @@ else if (w.startsWith("!")) {
}

//解决AccessVerifier新增userId没有作为条件,而是作为内容,导致PUT,DELETE出错
if (isWhere) {
if (isWhere || (StringUtil.isName(key) == false)) {
tableWhere.put(key, value);
if (whereList == null || whereList.contains(key) == false) {
andList.add(key);
Expand Down