fix attendance

This commit is contained in:
xiaomlove
2021-06-14 02:12:21 +08:00
parent 67d68e73f7
commit c63005fbf7
2 changed files with 5 additions and 4 deletions

View File

@@ -584,13 +584,13 @@ class ExamRepository extends BaseRepository
try {
$updateResult = $this->updateProgress($examUser);
if ($updateResult) {
do_log("$logPrefix, [UPDATE_SUCCESS_RETURN_DIRECTLY]");
do_log("$logPrefix, [UPDATE_PROGRESS_SUCCESS_RETURN_DIRECTLY]");
return $updateResult;
} else {
do_log("$logPrefix, [UPDATE_SUCCESS_FAIL]");
do_log("$logPrefix, [UPDATE_PROGRESS_FAIL]");
}
} catch (\Exception $exception) {
do_log("$logPrefix, [UPDATE_SUCCESS_FAIL]: " . $exception->getMessage(), 'error');
do_log("$logPrefix, [UPDATE_PROGRESS_FAIL]: " . $exception->getMessage(), 'error');
}
$exam = $examUser->exam;
$progress = $examUser->progress;