From 7dfcdeebf57146203882ef5ad465bf8f026637a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:27:23 +0000 Subject: [PATCH] Fix: Replace data.data.errno with data.code to prevent undefined error Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- sample/notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/notify.js b/sample/notify.js index f935e8ce..280f4234 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -301,7 +301,7 @@ function serverNotify(text, desp) { console.log('Server 酱发送通知调用API失败😞\n', err); } else { // server酱和Server酱·Turbo版的返回json格式不太一样 - if (data.errno === 0 || data.data.errno === 0) { + if (data.errno === 0 || data.code === 0) { console.log('Server 酱发送通知消息成功🎉\n'); } else if (data.errno === 1024) { // 一分钟内发送相同的内容会触发