feat: release undergraduate integration 0.7.0
This commit is contained in:
@@ -107,8 +107,9 @@ class ExamSchedule {
|
||||
? SupportedSchool.uestcGraduate
|
||||
: SupportedSchool.fromId(json['schoolId'] as String);
|
||||
final rawTypes = json['requestedExamTypes'] ?? <int>[];
|
||||
if (rawTypes is! List || rawTypes.any((t) => t is! int || t < 1 || t > 3))
|
||||
if (rawTypes is! List || rawTypes.any((t) => t is! int || t < 1 || t > 3)) {
|
||||
throw const FormatException('考试类型无效');
|
||||
}
|
||||
final types = rawTypes.cast<int>().toSet();
|
||||
SchoolTerm(int.parse(id), school: school);
|
||||
if (school == SupportedSchool.uestcUndergraduate &&
|
||||
|
||||
Reference in New Issue
Block a user