chore: 去掉已经不用的学习轮询间隔

This commit is contained in:
2026-11-16 01:21:22 +08:00
parent 7f0466b0f6
commit d963710672
2 changed files with 0 additions and 28 deletions
-9
View File
@@ -15,12 +15,3 @@ export const dayOptions = Array.from({ length: 31 }, (_, index) => ({
label: `每月 ${index + 1}号`,
value: index + 1,
}));
export const STUDY_POLL_FLOOR = 10;
export function studyPollSeconds(intervals: number[]): number {
if (intervals.some((value) => value <= 0)) return STUDY_POLL_FLOOR;
const positive = intervals.filter((value) => value > 0);
if (!positive.length) return STUDY_POLL_FLOOR;
return Math.max(STUDY_POLL_FLOOR, Math.min(...positive));
}