feat: integrate undergraduate school workflows and period twelve

This commit is contained in:
Codex
2026-10-15 00:28:04 +08:00
parent 7939bd4c3c
commit b28f333720
15 changed files with 573 additions and 26 deletions
@@ -506,6 +506,25 @@ class SchoolSession extends ChangeNotifier {
return future.whenComplete(() => _logoutFuture = null);
}
void invalidateAuthentication() {
_openSerial++;
_pageGeneration++;
_reader.invalidate();
_flow.reset();
_poll?.cancel();
_timeout?.cancel();
_readingActive = false;
_routeClosed = true;
hasOpened = false;
pendingDraft = null;
pendingExams = null;
finding = false;
_loading = false;
connectionState = SchoolConnectionState.signedOut;
message = '学校登录已退出';
notifyListeners();
}
Future<void> _performLogout() async {
_openSerial++;
_pageGeneration++;
@@ -368,6 +368,8 @@ class UndergraduateSession extends ChangeNotifier {
void invalidateAuthentication() {
_reset();
_active = false;
hasOpened = false;
_connected = false;
awaitingAuthentication = false;
message = '学校登录已退出';