This commit is contained in:
Aether
2025-10-09 14:01:58 +08:00
parent 1c0989d52d
commit 3415f75673
6 changed files with 12 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ class DataService implements DataServiceInterface
{
$campus = $this->campusModel->find($id);
if (! $campus || $campus->status != 1) {
throw new CampusNotFound('校区不存在或已禁用');
throw new CampusNotFound(9999, 'Campus not found', ['id' => $id]);
}
return $campus->toArray();
}