feat: 更新 UI 样式以及消息通知
This commit is contained in:
@@ -80,13 +80,6 @@ async function executeStandReminderTask(): Promise<void> {
|
||||
const state = store.getState();
|
||||
const userProfile = state.user.profile;
|
||||
|
||||
// 检查时间限制(工作时间内提醒,避免深夜或清晨打扰)
|
||||
const currentHour = new Date().getHours();
|
||||
if (currentHour < 9 || currentHour >= 21) {
|
||||
console.log(`当前时间${currentHour}点,不在站立提醒时间范围内,跳过站立提醒`);
|
||||
return;
|
||||
}
|
||||
|
||||
// 获取用户名
|
||||
const userName = userProfile?.name || '朋友';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user