mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 14:00:56 +08:00
exam_user add status: avoid
This commit is contained in:
@@ -37,7 +37,7 @@ class UserRepository extends BaseRepository
|
||||
$baseInfo = $userResource->response()->getData(true)['data'];
|
||||
|
||||
$examRep = new ExamRepository();
|
||||
$examProgress = $examRep->getUserExamProgress($id, ExamUser::STATUS_NORMAL, ['exam']);
|
||||
$examProgress = $examRep->getUserExamProgress($id, null, ['exam']);
|
||||
if ($examProgress) {
|
||||
$examResource = new ExamUserResource($examProgress);
|
||||
$examInfo = $examResource->response()->getData(true)['data'];
|
||||
|
||||
Reference in New Issue
Block a user