Skip to content

Commit ad6d9bb

Browse files
committed
Server: 调试信息字段用 | 替代 / 来分割,避免 APIJSON ORM,APIAuto 等解析路径错误
1 parent 81c0f72 commit ad6d9bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ public JSONObject parseResponse(JSONObject request) {
390390
long endTime = System.currentTimeMillis();
391391
long duration = endTime - startTime;
392392

393-
if (Log.DEBUG) {
394-
requestObject.put("sql:generate/cache/execute/maxExecute", sqlExecutor.getGeneratedSQLCount() + "/" + sqlExecutor.getCachedSQLCount() + "/" + sqlExecutor.getExecutedSQLCount() + "/" + getMaxSQLCount());
395-
requestObject.put("depth:count/max", queryDepth + "/" + getMaxQueryDepth());
396-
requestObject.put("time:start/duration/end", startTime + "/" + duration + "/" + endTime);
393+
if (Log.DEBUG) { //用 | 替代 /,避免 APIJSON ORM,APIAuto 等解析路径错误
394+
requestObject.put("sql:generate|cache|execute|maxExecute", sqlExecutor.getGeneratedSQLCount() + "|" + sqlExecutor.getCachedSQLCount() + "|" + sqlExecutor.getExecutedSQLCount() + "|" + getMaxSQLCount());
395+
requestObject.put("depth:count|max", queryDepth + "|" + getMaxQueryDepth());
396+
requestObject.put("time:start|duration|end", startTime + "|" + duration + "|" + endTime);
397397
}
398398

399399
onClose();

0 commit comments

Comments
 (0)