Fix: Replace data.data.errno with data.code to prevent undefined error

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-29 11:27:23 +00:00
parent 0c1b12820b
commit 7dfcdeebf5

View File

@ -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) {
// 一分钟内发送相同的内容会触发