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

+5 -5
View File
@@ -830,18 +830,18 @@ export function listTick() {
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') {