Parcourir la source

场次bug fix

lideyin il y a 4 ans
Parent
commit
417c08a6e5

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

@@ -420,16 +420,9 @@ public class ExamControlServiceImpl implements ExamControlService {
 
                 if (null != examStageId) {
                     ExamStageCacheBean examStage = CacheHelper.getExamStage(examId, examStageId);
-                    if (!examStage.getSpecialSetting()) {
-                        return originalExamTotalSeconds;
-                    }
-
-                    if (SubmitType.NORMAL.name().equals(examStage.getSubmitType())) {
-                        return originalExamTotalSeconds;
-                    }
 
                     //如果是定点交卷需要特殊处理,否则直接返回考试中定义的考试时长
-                    if (examStage.getSpecialSetting() && SubmitType.TIMING_END.name().equals(examStage.getSubmitType())) {
+                    if (SubmitType.TIMING_END.name().equals(examStage.getSubmitType())) {
                         //定点交卷时间 = 开始进入考试的起始值 + 定点交卷时长
                         Date fixedSubmitTime = DateUtils.addMinutes(examStage.getStartTime(), examStage.getSubmitDuration());
                         //理论上考试时长 = (定点交卷时间 - 实际开始答题时间)