Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
错误码只在最外层返回,逻辑统一
  • Loading branch information
iceewei
iceewei committed Apr 5, 2021
commit 737aa738efb8fb5ca362b537c8adc49b9d225f9c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public JSONObject execute(@NotNull SQLConfig config, boolean unknowType) throws

result = new JSONObject();
if (config.getMethod() == RequestMethod.DELETE) {
// 特别地,针对DELETE请求,如果需要提示code,可以用内部的code来判断。其余请求类型统一使用外层错误码。
result = AbstractParser.newResult(updateCount > 0 ? JSONResponse.CODE_SUCCESS : JSONResponse.CODE_NOT_FOUND,
updateCount > 0 ? JSONResponse.MSG_SUCCEED : "没权限访问或对象不存在!");
}
Expand Down