Skip to content

Commit 0e7c251

Browse files
committed
Server:解决对表对象数量限制失效
1 parent 47c4c33 commit 0e7c251

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractObjectParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public JSON onChildParse(int index, String key, JSONObject value) throws Excepti
502502
}
503503
else {//APIJSON Object
504504
if (arrayConfig == null || arrayConfig.getPosition() == 0) {
505-
arrayCount ++;
505+
objectCount ++;
506506
int maxObjectCount = parser.getMaxObjectCount();
507507
if (objectCount > maxObjectCount) {
508508
throw new IllegalArgumentException(path + " 内截至 " + key + " 时表对象 TableKey:{} 的数量达到 " + objectCount + " 已超限,必须在 0-" + maxObjectCount + " 内 !");

APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ public JSONObject parseResponse(JSONObject request) {
322322
long duration = endTime - startTime;
323323

324324
if (Log.DEBUG) {
325-
requestObject.put("time:start/duration/end", startTime + "/" + duration + "/" + endTime);
326-
requestObject.put("query:depth/max", queryDepth + "/" + getMaxQueryDepth());
327325
requestObject.put("sql:generate/cache/execute/maxExecute", sqlExecutor.getGeneratedSQLCount() + "/" + sqlExecutor.getCachedSQLCount() + "/" + sqlExecutor.getExecutedSQLCount() + "/" + getMaxSQLCount());
326+
requestObject.put("depth:count/max", queryDepth + "/" + getMaxQueryDepth());
327+
requestObject.put("time:start/duration/end", startTime + "/" + duration + "/" + endTime);
328328
}
329329

330330
sqlExecutor.close();

0 commit comments

Comments
 (0)