Skip to content

Commit 8715e12

Browse files
committed
key[]:{ query:2 或 query:"All" } 在已有 total 和 keyListInfo 字段时不返回默认的列表分页信息
1 parent f058353 commit 8715e12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ public JSON onChildParse(int index, String key, JSONObject value) throws Excepti
562562

563563
if (isEmpty == false && ("2".equals(query) || "ALL".equals(query))) {
564564
String infoKey = JSONResponse.formatArrayKey(key) + "Info";
565-
if (request.containsKey("total@") == false && request.containsKey(infoKey + "@") == false) {
565+
if (request.containsKey("total") == false && request.containsKey(infoKey) == false
566+
&& request.containsKey("total@") == false && request.containsKey(infoKey + "@") == false) {
566567
// onParse("total@", "/" + key + "/total");
567568
// onParse(infoKey + "@", "/" + key + "/info");
568569
// 替换为以下性能更好、对流程干扰最小的方式:

0 commit comments

Comments
 (0)