check notification if WalletRespond not null
This commit is contained in:
		| @@ -36,9 +36,9 @@ const nodemailer = require("nodemailer"); | |||||||
|         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; font-weight: bold">${key} Wallet返回体</span> <br> <span style="color: orange">${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>`); | ||||||
|  |         if(WalletRespond.data != null) { | ||||||
|             var NotificationRespond = await ListNotification(header); |             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>`); |             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 ++; |             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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user