mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-01 11:20:14 +08:00
Fix undefined error in serverNotify when Server酱 returns error responses (#2917)
* Initial plan * Fix: Replace data.data.errno with data.code to prevent undefined error Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
c2eac8b8fd
commit
e06c3571a8
|
|
@ -307,7 +307,7 @@ function serverNotify(text, desp) {
|
||||||
console.log('Server 酱发送通知调用API失败😞\n', err);
|
console.log('Server 酱发送通知调用API失败😞\n', err);
|
||||||
} else {
|
} else {
|
||||||
// server酱和Server酱·Turbo版的返回json格式不太一样
|
// server酱和Server酱·Turbo版的返回json格式不太一样
|
||||||
if (data.errno === 0 || data.data.errno === 0) {
|
if (data.errno === 0 || data.code === 0) {
|
||||||
console.log('Server 酱发送通知消息成功🎉\n');
|
console.log('Server 酱发送通知消息成功🎉\n');
|
||||||
} else if (data.errno === 1024) {
|
} else if (data.errno === 1024) {
|
||||||
// 一分钟内发送相同的内容会触发
|
// 一分钟内发送相同的内容会触发
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user