check notification if WalletRespond not null

This commit is contained in:
Zichao Lin 2023-08-29 08:36:41 +08:00
parent 7f72624a3f
commit 4c74a34d9d
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

@ -36,9 +36,9 @@ const nodemailer = require("nodemailer");
var header = makeHeader(configs[key], appversion);
var WalletRespond = await Wallet(header);
addLogContent(`<span style="color: orange; font-weight: bold">${key} Wallet返回体</span> <br> <span style="color: orange">${JSON.stringify(WalletRespond)}</span><br>`);
if(WalletRespond.data != null) {
var NotificationRespond = await ListNotification(header);
addLogContent(`<span style="color: orange; font-weight: bold">${key} Notification返回体</span> <br> <span style="color: orange">${JSON.stringify(NotificationRespond)}</span><br>`);
if(WalletRespond.data != null) {
successNum ++;
log.info(`签到完毕! 剩余时长:${WalletRespond.data.free_time.free_time}分钟`)
let NotificationLength = NotificationRespond.data.list.length