feat: Bark 增加开始运行与获得学分提醒

收尾通知去掉重复的积分台账与完成门数;学习统计在无 TTY 时照常累计,保证 Docker 里也能推送学分提醒。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
voidandClaude Sonnet 4.6 committed 2026-11-02 22:30:11 +08:00
1 parent 18c5e5a3be
commit 6b508a0b1a
15 files changed
+188 -51

No files matched your search

+4 -5
View File
@@ -2981,18 +2981,17 @@
const invStatus = ensurePointsInventory();
if (invStatus === "loading") return;
if (platformNoAward()) {
stopBatch("今日积分:平台连续 3 门课未入账,判定今日积分已满或没有可计分内容");
stopBatch("平台连续 3 门课未入账,判定今日积分已满或没有可计分内容");
return;
}
if (pointsDone()) {
const text = points.summary();
console.log(TAG, "今日积分:平台台账已达上限或可用内容已学完", text);
stopBatch("今日积分:可用内容已学完(" + text + ")");
console.log(TAG, "今日积分:平台台账已达上限或可用内容已学完", points.summary());
stopBatch("可用内容已学完");
return;
}
const target = pointsTarget();
if (!target) {
stopBatch("今日积分任务:剩余类型都没有可学内容");
stopBatch("剩余积分类型都没有可学内容");
return;
}
if (target.kind === "item") {