From 299c3d42633af9034b33a0b62d26a0ec76eb25b9 Mon Sep 17 00:00:00 2001 From: Yu Zhao <0+cmal@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:44:51 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 386ae57f..2425f635 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));