Compare commits

...

2 Commits

Author SHA1 Message Date
4c74a34d9d
check notification if WalletRespond not null 2023-08-29 08:36:41 +08:00
7f72624a3f
improve log style 2023-08-29 08:33:09 +08:00

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