增加PushMe消息通道

This commit is contained in:
yafu 2023-07-20 13:07:59 +08:00
parent 49e88006ce
commit 71a8683e58

View File

@ -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);