diff --git a/docs/mteam.groovy b/docs/mteam.groovy index 2782671..d989da9 100644 --- a/docs/mteam.groovy +++ b/docs/mteam.groovy @@ -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'))