From 409b3281cc91eb6726dd54c3484f19f53720bcae Mon Sep 17 00:00:00 2001 From: Yu Zhao <1773318+cmal@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A3=9E=E4=B9=A6=20bot=20?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E8=BF=87=E7=A8=8B=EF=BC=8C=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=96=B0=E7=8A=B6=E6=80=81=E7=A0=81=20(#2300)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yu Zhao <0+cmal@users.noreply.github.com> --- back/services/notify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/notify.ts b/back/services/notify.ts index d6fc9a36..2f01ab62 100644 --- a/back/services/notify.ts +++ b/back/services/notify.ts @@ -525,7 +525,7 @@ export default class NotificationService { headers: { 'Content-Type': 'application/json' }, }) .json(); - if (res.StatusCode === 0) { + if (res.StatusCode === 0 || res.code === 0) { return true; } else { throw new Error(JSON.stringify(res));