feat: add two-tab timetable UI and glass dock
This commit is contained in:
@@ -49,8 +49,9 @@ class Course {
|
||||
}
|
||||
|
||||
final rawWeeks = json['weeks'];
|
||||
if (rawWeeks is! List || rawWeeks.any((w) => w is! int))
|
||||
if (rawWeeks is! List || rawWeeks.any((w) => w is! int)) {
|
||||
throw const FormatException('周次必须是整数数组');
|
||||
}
|
||||
return Course(
|
||||
id: text('id'),
|
||||
name: text('name'),
|
||||
|
||||
Reference in New Issue
Block a user