fix: harden school imports and add optional feedback diagnostics

This commit is contained in:
Codex
2026-10-15 10:37:32 +08:00
parent 674df1ceb3
commit 7299f4d8b6
25 changed files with 722 additions and 42 deletions
+3 -1
View File
@@ -150,11 +150,13 @@ class ExamsPage extends StatelessWidget {
style: TextStyle(fontSize: 13, color: ink.withValues(alpha: 0.55)),
),
const SizedBox(height: 18),
if (schedule.school == SupportedSchool.uestcUndergraduate)
if (schedule.school == SupportedSchool.uestcUndergraduate) ...[
Text(
'查询类型:${UndergraduateExamQuery.fromSchedule(schedule)!.orderedTypes.map((t) => t.label).join('、')}',
style: const TextStyle(fontSize: 12),
),
const SizedBox(height: 16),
],
if (schedule.records.isEmpty)
Text(
schedule.school == SupportedSchool.uestcUndergraduate