|
@@ -370,7 +370,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
}
|
|
|
Boolean finished = toeExamRecordService.examBreakLogic(recordId, false);
|
|
|
if (finished) {
|
|
|
- return ret;
|
|
|
+ throw new BusinessException("考试已结束");
|
|
|
}
|
|
|
ExamCacheBean exam = getExamCacheBeanNative(es.getExamId());
|
|
|
Long activityId = es.getExamActivityId();
|
|
@@ -877,7 +877,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
ExamResumeBean ret = null;
|
|
|
Boolean finished = toeExamRecordService.examBreakLogic(recordId, false);
|
|
|
if (finished) {
|
|
|
- return ret;
|
|
|
+ throw new BusinessException("考试已结束");
|
|
|
}
|
|
|
ret = new ExamResumeBean();
|
|
|
ret.setDurationSeconds(ExamRecordCacheUtil.getDurationSeconds(recordId));
|