Skip to content

Commit 618acfe

Browse files
committed
Server:优化AbstractParser.onArrayParse缓存取值后数组的性能,远程函数返回的数组不可能在这里用response返回
1 parent 2784973 commit 618acfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public JSONArray onArrayParse(final JSONObject request, String parentPath, Strin
697697
}
698698
}
699699
*/
700-
Object fo = response.isEmpty() ? null : response.get(0); //可能是远程函数返回的,而不是提取 childKeys == null || response.isEmpty()
700+
Object fo = childKeys == null || response.isEmpty() ? null : response.get(0);
701701
if (fo instanceof Boolean || fo instanceof Number || fo instanceof String) { //[{}] 和 [[]] 都没意义
702702
putQueryResult(path, response);
703703
}

0 commit comments

Comments
 (0)