Parcourir la source

未开启不记切屏次数

xiatian il y a 3 ans
Parent
commit
1c1de4d28c

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

@@ -1174,11 +1174,11 @@ public class ExamControlServiceImpl implements ExamControlService {
         }
         
         SwitchScreenCountInfo ret=new SwitchScreenCountInfo();
-        if(examSessionInfo.getRecordSwitchScreen()) {
-        	ret.setMaxSwitchScreenCount(examSessionInfo.getMaxSwitchScreenCount());
-        }else {
-        	ret.setMaxSwitchScreenCount(null);
+        //为开启计算切屏次数的不y
+        if(!examSessionInfo.getRecordSwitchScreen()) {
+        	return ret;
         }
+        ret.setMaxSwitchScreenCount(examSessionInfo.getMaxSwitchScreenCount());
 
         //更新考试记录缓存
         int switchScreenCount = null == examRecordData.getSwitchScreenCount() ? 0 : examRecordData.getSwitchScreenCount();