diff --git a/app/common/service/TeacherService.php b/app/common/service/TeacherService.php index 57a2b1d..023f479 100644 --- a/app/common/service/TeacherService.php +++ b/app/common/service/TeacherService.php @@ -103,7 +103,8 @@ class TeacherService { try { $teacher = Teacher::where(['id' => $request->teacher->id])->field('id,account,teacher_name,time_zone_offset,time_zone_id,time_zone_name')->findOrEmpty(); - + $teacher = $teacher->toArray(); + $teacher['role'] = 'teacher'; return [ 'code' => ResponseCode::SUCCESS, 'data' => $teacher,