|
@@ -373,7 +373,8 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
}
|
|
|
|
|
|
if ((!ExamType.ONLINE.name().equals(examSettingsCacheBean.getExamType()))
|
|
|
- && (!ExamType.PRACTICE.name().equals(examSettingsCacheBean.getExamType()))) {
|
|
|
+ && (!ExamType.PRACTICE.name().equals(examSettingsCacheBean.getExamType()))
|
|
|
+ && (!ExamType.ONLINE_HOMEWORK.name().equals(examSettingsCacheBean.getExamType()))) {
|
|
|
throw new StatusException("100019", "考试类型错误");
|
|
|
}
|
|
|
|
|
@@ -1423,7 +1424,8 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
|
|
|
Long examUsedMilliSeconds = cost * 1000;
|
|
|
// 如果没有超过冻结时间,抛出异常
|
|
|
- if (examingSession.getExamType().equals(ExamType.ONLINE.name())) {
|
|
|
+ if (ExamType.ONLINE.name().equals(examingSession.getExamType())
|
|
|
+ || ExamType.ONLINE_HOMEWORK.name().equals(examingSession.getExamType())) {
|
|
|
ExamRecordData examRecordData = examRecordDataService
|
|
|
.getExamRecordDataCache(examingSession.getExamRecordDataId());
|
|
|
|