From bc9ba3693f2a040620278b1ed7a51113a5822068 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 2 Sep 2026 08:16:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(panel=20web):=20NOT=5FJSON=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=97=A5=E5=BF=97=E8=A1=A5=20=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E9=95=BF=E5=BA=A6+=E5=B0=BE=E9=83=A8=20200=20=E5=AD=97?= =?UTF-8?q?=E8=8A=82=EF=BC=88=E5=AE=9A=E4=BD=8D=E6=88=AA=E6=96=AD=E7=82=B9?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patch_v2/meowpanel/web/meowpanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch_v2/meowpanel/web/meowpanel.js b/patch_v2/meowpanel/web/meowpanel.js index 54d52ec..c7a54fb 100644 --- a/patch_v2/meowpanel/web/meowpanel.js +++ b/patch_v2/meowpanel/web/meowpanel.js @@ -177,7 +177,7 @@ try { json = text ? JSON.parse(text) : null; } catch (e) { json = null; } if (!json || typeof json.ok !== 'boolean') { // 静态服务器返回 HTML / 404 等 - dbgErr(method || 'GET', path, 'HTTP', res.status, ms + 'ms', '非 JSON 响应, 原始内容头:', text.slice(0, 300)); + dbgErr(method || 'GET', path, 'HTTP', res.status, ms + 'ms', '非 JSON 响应, len=' + text.length, '头:', text.slice(0, 200), '尾:', text.slice(-200)); setConn(res.ok ? true : false); throw { code: 'NOT_JSON', message: '后端返回了非 JSON 响应(HTTP ' + res.status + ')', status: res.status }; }