fix: 修复压力数据

This commit is contained in:
2025-09-12 22:51:14 +08:00
parent 4627cb650e
commit ab87bddd51
7 changed files with 47 additions and 57 deletions

View File

@@ -40,10 +40,6 @@ async function executeWaterReminderTask(): Promise<void> {
// 检查时间限制(避免深夜打扰)
const currentHour = new Date().getHours();
if (currentHour < 8 || currentHour >= 21) {
console.log(`当前时间${currentHour}点,不在提醒时间范围内,跳过喝水提醒`);
return;
}
// 获取用户名
const userName = userProfile?.name || '朋友';
@@ -152,7 +148,7 @@ async function executeBackgroundTasks(): Promise<void> {
return;
}
await sendTestNotification()
// await sendTestNotification()
// 执行喝水提醒检查任务
await executeWaterReminderTask();