1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
async function scheduleTimer({ providerRes, parserRes } = {}) { let totalWeek = 19; if ( providerRes.indexOf("春季学期") >= 0 && providerRes.indexOf("春季学期") < 150 ) { totalWeek = 18; } else if ( providerRes.indexOf("秋季学期") >= 0 && providerRes.indexOf("秋季学期") < 150 ) { totalWeek = 19; } else { totalWeek = 9; } const sections = [ { section: 1, startTime: "08:00", endTime: "08:45", }, { section: 2, startTime: "08:50", endTime: "09:35", }, { section: 3, startTime: "09:50", endTime: "10:35", }, { section: 4, startTime: "10:40", endTime: "11:25", }, { section: 5, startTime: "11:30", endTime: "12:15", }, { section: 6, startTime: "14:00", endTime: "14:45", }, { section: 7, startTime: "14:50", endTime: "15:35", }, { section: 8, startTime: "15:50", endTime: "16:35", }, { section: 9, startTime: "16:40", endTime: "17:25", }, { section: 10, startTime: "17:30", endTime: "18:15", }, { section: 11, startTime: "19:00", endTime: "19:45", }, { section: 12, startTime: "19:50", endTime: "20:35", }, { section: 13, startTime: "20:40", endTime: "21:25", }, { section: 14, startTime: "21:30", endTime: "22:15", }, ]; return { totalWeek: totalWeek, startSemester: "", startWithSunday: false, showWeekend: true, forenoon: 5, afternoon: 5, night: 4, sections: sections, }; }
|