修改了通知相关的功能,能够正常通知了。

This commit is contained in:
2026-09-13 23:35:52 +08:00
parent e62416e5ce
commit 6899a5074b
10 changed files with 752 additions and 62 deletions
+2 -1
View File
@@ -277,6 +277,7 @@ export class SyncEngine {
r.rrule = e.rrule;
r.exdate = e.exdate;
r.reminder = e.reminder;
r.reminders = e.reminders.slice();
return r;
}
@@ -319,7 +320,7 @@ export class SyncEngine {
const ics: string = IcsUtil.build(e);
const etag: string = await DavClient.putEvent(url, auth, ics);
await EventDb.clearDirty(context, e.id, etag);
LogUtil.write(`推送保存「${e.title}」→ ${url}${ics.length} 字节)`);
LogUtil.write(`推送保存「${e.title}」→ ${url}${ics.length} 字节,提醒=${e.reminders.map((n: number): string => String(n)).join('/')}分钟,VALARM=${ics.toUpperCase().includes('BEGIN:VALARM') ? '有' : '无'}`);
}
}
}