mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
user exam update end think about status
This commit is contained in:
@@ -842,6 +842,9 @@ class ExamRepository extends BaseRepository
|
||||
if ($end->isBefore($examUser->begin)) {
|
||||
throw new \InvalidArgumentException(nexus_trans("exam-user.end_can_not_before_begin", ['begin' => $examUser->begin, 'end' => $end]));
|
||||
}
|
||||
if ($examUser->status != ExamUser::STATUS_NORMAL) {
|
||||
throw new \LogicException(nexus_trans("exam-user.status_not_allow_update_end", ['status_text' => nexus_trans('exam-user.status.' . ExamUser::STATUS_NORMAL)]));
|
||||
}
|
||||
$oldEndTime = $examUser->end;
|
||||
$locale = $examUser->user->locale;
|
||||
$examName = $examUser->exam->name;
|
||||
|
||||
Reference in New Issue
Block a user