Preserve courses with pending rooms and report precise graduate import errors

This commit is contained in:
david1465833828
2026-10-28 19:56:02 +08:00
parent 8713bce0ee
commit 21b0df9e33
17 changed files with 340 additions and 53 deletions
@@ -103,7 +103,13 @@ class _UndergraduateAuthPageState extends State<UndergraduateAuthPage> {
if (route?.isCurrent == true) Navigator.pop(context);
messenger.showSnackBar(
SnackBar(
content: Text(exams == null ? '课表已导入,请核对学期开始日。' : '考试信息已更新'),
content: Text(
exams != null
? '考试信息已更新'
: draft!.courses.any((c) => c.room == '教室待定')
? '课表已导入,部分课程教室待定;请核对学期开始日。'
: '课表已导入,请核对学期开始日。',
),
),
);
} else if (controller.lastError != null) {