From 159f90f44a72999bba006174e88a1d4cf4837104 Mon Sep 17 00:00:00 2001 From: Luk Date: Mon, 29 Jan 2024 20:43:46 +0800 Subject: [PATCH] add some prompts when sendMail returns --- messenger.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/messenger.js b/messenger.js index 3f67f0b..d533f93 100644 --- a/messenger.js +++ b/messenger.js @@ -31,14 +31,14 @@ module.exports = { } */ if (result.messageId && result.response === '250 Ok') { - console.log(result) + console.log('MSG_SENT_SUCCESS', result) return { _state: 'MSG_SENT_SUCCESS' } } - console.log(result) + console.log('MSG_SEND_FAIL', result) return { _state: 'MSG_SEND_FAIL' } }) .catch((err) => { - console.log(err) + console.log('SMS_SEND_ERROR', err) return { _state: 'SMS_SEND_ERROR' } }) },