check notification if WalletRespond not null
This commit is contained in:
parent
7f72624a3f
commit
4c74a34d9d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user