diff --git a/config.js b/config.js
index c01a6f5..8b0b63b 100644
--- a/config.js
+++ b/config.js
@@ -87,14 +87,13 @@ exports.checkConfigs = function(configs){
if(configThis[configKeys[key]] == "" || configThis[configKeys[key]] == undefined || configThis[configKeys[key]] == null || configThis[configKeys[key]] == NaN) {
log.error(`配置文件 ${file} 异常:`);
log.error(` —— ${configKeys[key]}字段缺失`);
- isNoProbem = false;
- break;
+ // isNoProbem = false;
}
}
- if(!isNoProbem) {
- exit();
- }
+ // if(!isNoProbem) {
+ // exit();
+ // }
}
}
diff --git a/index.js b/index.js
index 3323c95..0a3e015 100644
--- a/index.js
+++ b/index.js
@@ -59,12 +59,16 @@ for(key in configs) {
logContent += `${key} Wallet返回体
${JSON.stringify(WalletRespond)}
`;
var NotificationRespond = Notification(makeHeader(configs[key]));
logContent += `${key} Notification返回体
${JSON.stringify(NotificationRespond)}
`;
- if(WalletRespond.data.free_time.free_time != undefined) {
- successNum ++;
- log.info(`签到完毕! 剩余时长:${WalletRespond.data.free_time.free_time}分钟`)
- let NotificationLength = NotificationRespond.data.list.length
- if(NotificationLength != 0) {
- log.info(`已堆积 ${NotificationLength} 个签到通知 请及时处理!`)
+ if(WalletRespond.data != null) {
+ if(WalletRespond.data.free_time.free_time != undefined) {
+ successNum ++;
+ log.info(`签到完毕! 剩余时长:${WalletRespond.data.free_time.free_time}分钟`)
+ let NotificationLength = NotificationRespond.data.list.length
+ if(NotificationLength != 0) {
+ log.info(`已堆积 ${NotificationLength} 个签到通知 请及时处理!`)
+ }
+ } else {
+ log.error("签到失败")
}
} else {
log.error("签到失败")