From 71a8683e5845d4d8096fefcaf1d72c4f7903ee8f Mon Sep 17 00:00:00 2001 From: yafu Date: Thu, 20 Jul 2023 13:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0PushMe=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/notify.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/notify.ts b/back/services/notify.ts index 5bd85bde..01d13329 100644 --- a/back/services/notify.ts +++ b/back/services/notify.ts @@ -574,10 +574,10 @@ export default class NotificationService { }, headers: { 'Content-Type': 'application/json' }, }); - if (res === 'success') { + if (res.body === 'success') { return true; } else { - throw new Error(res); + throw new Error(res.body); } } catch (error: any) { throw new Error(error.response ? error.response.body : error);