Skip to content

Commit 92e35b0

Browse files
committed
Java: MultiDataSource 解决 UnitAuto, SQLAuto, UIGO 中 JSONRequest.parseJSON 死循环
1 parent a02c8ad commit 92e35b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/sql/apijson/JSONRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function parseJSON(s) {
266266
}
267267
// alertOfDebug("parseJSON s = \n" + s);
268268

269-
return parseJSON(s);
269+
return JSON.parse(s);
270270
}
271271

272272
/**测试用的提示

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/ui/apijson/JSONRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function parseJSON(s) {
232232
}
233233
// alertOfDebug("parseJSON s = \n" + s);
234234

235-
return parseJSON(s);
235+
return JSON.parse(s);
236236
}
237237

238238
/**测试用的提示

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/unit/apijson/JSONRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function parseJSON(s) {
266266
return null;
267267
}
268268
try {
269-
return parseJSON(s);
269+
return JSON.parse(s);
270270
} catch (e) {
271271
return JSON5.parse(s)
272272
}

0 commit comments

Comments
 (0)