Skip to content

Commit b5d2cba

Browse files
committed
Server:解决分页详细信息 info 中页码 key 错误
1 parent a0a634f commit b5d2cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSON-Java-Server/APIJSONORM/src/main/java/apijson/orm/AbstractParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ public JSONObject onObjectParse(final JSONObject request
756756

757757
JSONObject pagination = new JSONObject(true);
758758
pagination.put(JSONResponse.KEY_TOTAL, total);
759-
pagination.put(JSONResponse.KEY_COUNT, count);
760-
pagination.put(JSONResponse.KEY_INFO, page);
759+
pagination.put(JSONRequest.KEY_COUNT, count);
760+
pagination.put(JSONRequest.KEY_PAGE, page);
761761
pagination.put(JSONResponse.KEY_MAX, max);
762762
pagination.put(JSONResponse.KEY_MORE, page < max);
763763
pagination.put(JSONResponse.KEY_FIRST, page == 0);

0 commit comments

Comments
 (0)