mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
增加PushMe消息通道
This commit is contained in:
parent
49e88006ce
commit
71a8683e58
|
@ -574,10 +574,10 @@ export default class NotificationService {
|
||||||
},
|
},
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
});
|
});
|
||||||
if (res === 'success') {
|
if (res.body === 'success') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(res);
|
throw new Error(res.body);
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
throw new Error(error.response ? error.response.body : error);
|
throw new Error(error.response ? error.response.body : error);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user