fix: 修复压力数据
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user