fix: Groovy错误消息GString序列化修复+实际JSON截断问题标注

This commit is contained in:
mediabot-pt
2026-07-01 13:03:23 +08:00
parent 8c95af8028
commit 6c304648dc

View File

@@ -9,7 +9,8 @@ Map parse(String content, String url) {
try {
root = json.readValue(content, Map)
} catch (e) {
return [pageName: '解析失败', message: "JSON 解析异常: ${e.message}"]
def msg = e.message instanceof String ? e.message : e.toString()
return [pageName: '解析失败', message: 'JSON 解析异常: ' + msg]
}
if (url.contains('/api/member/profile'))