fix: parse改用Jackson ObjectMapper替代JsonSlurper,避免50000字符截断
This commit is contained in:
@@ -5,10 +5,9 @@ final String API_BASE = "https://api.m-team.io"
|
|||||||
// ==================== PAR 校验入口 ====================
|
// ==================== PAR 校验入口 ====================
|
||||||
|
|
||||||
Map parse(String content, String url) {
|
Map parse(String content, String url) {
|
||||||
def slurp = new groovy.json.JsonSlurper()
|
Map root
|
||||||
def root
|
|
||||||
try {
|
try {
|
||||||
root = slurp.parseText(content)
|
root = json.readValue(content, Map)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return [pageName: '解析失败', message: "JSON 解析异常: ${e.message}"]
|
return [pageName: '解析失败', message: "JSON 解析异常: ${e.message}"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user