v2.2更新

This commit is contained in:
canglan committed 2026-05-28 15:38:32 +08:00
1 parent f84c9d3efb
commit ca53fdc349
38 files changed
+688 -686

No files matched your search

+1
View File
@@ -160,6 +160,7 @@ $_SESSION['username'] = $data['username'];
$_SESSION['real_name'] = $data['real_name'] ?? '';
$_SESSION['role'] = $data['role'] ?? '';
$_SESSION['login_time'] = time();
$_SESSION['jwt_token'] = $token;
// 如果是学生,额外设置 student_id
if ($data['user_type'] === 'student') {