瀏覽代碼

Revert "定点收卷不受中途配置修改影响"

This reverts commit ab1bf8d4ca342fdbbfa6eef923101d1f7ca6a34e.
xiatian 4 年之前
父節點
當前提交
d23c615cca

+ 3 - 1
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -1822,11 +1822,13 @@ public class ExamControlServiceImpl implements ExamControlService {
         //考试总时长
 //        long examTotalMilliSeconds = calcExamTotalMilliSeconds(examingSession.getExamRecordDataId());
         //如果开启场次,并且设置了定点交卷,且已到定点收卷时间,则不需要校验冻结时间,直接返回考试时长
+        boolean isTimingEnd=isTimingEnd(examingSession.getExamId(), studentId, examingSession.getExamStageId());
         long fixedSubmitTime=examingSession.getFixedSubmitTime().getTime();
         long now =new Date().getTime();
-        if (examingSession.getTimingEnd()&& fixedSubmitTime<=now) {
+        if (isTimingEnd&& fixedSubmitTime<=now) {
             return examUsedMilliSeconds;
         }
+        log.error("checkAndComputeExamDuration error:"+isTimingEnd+"-"+fixedSubmitTime+"-"+now);
 
         // 如果没有超过冻结时间,抛出异常
         if (ExamType.ONLINE.name().equals(examingSession.getExamType())