From 4c74a34d9d848c0c6dce7bfaf8cb0c4874e0e900 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Tue, 29 Aug 2023 08:36:41 +0800 Subject: [PATCH] check notification if WalletRespond not null --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 422e862..0224876 100644 --- a/src/index.js +++ b/src/index.js @@ -36,9 +36,9 @@ const nodemailer = require("nodemailer"); var header = makeHeader(configs[key], appversion); var WalletRespond = await Wallet(header); addLogContent(`${key} Wallet返回体
${JSON.stringify(WalletRespond)}
`); - var NotificationRespond = await ListNotification(header); - addLogContent(`${key} Notification返回体
${JSON.stringify(NotificationRespond)}
`); if(WalletRespond.data != null) { + var NotificationRespond = await ListNotification(header); + addLogContent(`${key} Notification返回体
${JSON.stringify(NotificationRespond)}
`); successNum ++; log.info(`签到完毕! 剩余时长:${WalletRespond.data.free_time.free_time}分钟`) let NotificationLength = NotificationRespond.data.list.length