fix: 移除课程门数上限,避免与每日积分目标冲突
maxCourses 按整门课计数,而积分按课时计;只剩考试的课会白占名额, 曾出现 5 门用光但今日视频积分只拿到 1/3 就停止的情况。现在只由 今日积分完成、没有可学内容或 budgetMinutes 决定收尾。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
0eb4c40629
commit
f41fc72fe2
20 files changed
+45
-106
No files matched your search
+1
-3
@@ -171,7 +171,6 @@ export function createTui(opts = {}) {
|
||||
summary: '',
|
||||
countdown: null,
|
||||
completed: 0,
|
||||
maxCourses: 0,
|
||||
doneCount: 0,
|
||||
retryCount: 0,
|
||||
retryWait: 0,
|
||||
@@ -264,8 +263,7 @@ export function createTui(opts = {}) {
|
||||
|
||||
function countValue(width) {
|
||||
// 字段按重要性递降:本次/累计是骨架,其余在窄终端里从右往左丢,不硬截断
|
||||
const parts = ['本次 ' + state.completed + (state.maxCourses > 0 ? '/' + state.maxCourses : ''),
|
||||
'累计 ' + state.doneCount];
|
||||
const parts = ['本次 ' + state.completed, '累计 ' + state.doneCount];
|
||||
const extra = [];
|
||||
if (state.lessons) extra.push('课时数 ' + state.lessons);
|
||||
if (state.retryWait > 0) extra.push(C.yellow('等待重试 ' + state.retryWait + 's'));
|
||||
|
||||
Reference in new issue
Block a user