|
@@ -1822,10 +1822,13 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (isTimingEnd(examingSession.getExamId(), studentId, examingSession.getExamStageId())
|
|
+ boolean isTimingEnd=isTimingEnd(examingSession.getExamId(), studentId, examingSession.getExamStageId());
|
|
- && examingSession.getFixedSubmitTime().getTime()<=new Date().getTime()) {
|
|
+ long fixedSubmitTime=examingSession.getFixedSubmitTime().getTime();
|
|
|
|
+ long now =new Date().getTime();
|
|
|
|
+ if (isTimingEnd&& fixedSubmitTime<=now) {
|
|
return examUsedMilliSeconds;
|
|
return examUsedMilliSeconds;
|
|
}
|
|
}
|
|
|
|
+ log.error("checkAndComputeExamDuration error:"+isTimingEnd+"-"+fixedSubmitTime+"-"+now);
|
|
|
|
|
|
|
|
|
|
if (ExamType.ONLINE.name().equals(examingSession.getExamType())
|
|
if (ExamType.ONLINE.name().equals(examingSession.getExamType())
|