fix: 修复高危接口访问与会话安全问题

This commit is contained in:
biss committed 2026-10-04 17:35:13 +08:00
1 parent ca4a5f4e4e
commit 8523e7142c
12 files changed
+161 -36

No files matched your search

@@ -89,6 +89,9 @@ class Index extends StudentSearchBase
}
])
->find();
if ($khInfo === null || (int) $khInfo->student_id !== (int) session('user_id')) {
return $this->error('无权查看该成绩记录', '/studentSearchChengji/index/index');
}
$list['webtitle'] = $khInfo->cjKaoshi->title;
$list['id'] = $khInfo->id;