diff --git a/dist/index.js b/dist/index.js index a3df685..cfd2bda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -255,7 +255,8 @@ const notify_1 = require("./notify"); yield (0, notify_1.sendNotification)(summaryText); } else if (process.env.ENABLE_NOTIFY === 'true') { - console.log('ℹ️ 签到全部成功,跳过通知发送'); + yield (0, notify_1.sendNotification)(summaryText); + console.log('ℹ️ 签到全部成功,已发送通知'); } else { console.log('ℹ️ 通知功能未启用,跳过通知发送'); diff --git a/src/index.ts b/src/index.ts index dceb516..b7070ae 100644 --- a/src/index.ts +++ b/src/index.ts @@ -303,7 +303,8 @@ interface TiebaTrackInfo { console.log('▶️ 步骤5: 发送通知 (由于签到失败而触发)'); await sendNotification(summaryText); } else if (process.env.ENABLE_NOTIFY === 'true') { - console.log('ℹ️ 签到全部成功,跳过通知发送'); + await sendNotification(summaryText); + console.log('ℹ️ 签到全部成功,已发送通知'); } else { console.log('ℹ️ 通知功能未启用,跳过通知发送'); } @@ -340,4 +341,4 @@ interface TiebaTrackInfo { console.log(`⏱️ 总执行时间: ${executionTime.toFixed(2)}秒`); console.log('=========================================='); } -})(); \ No newline at end of file +})();