|
@@ -411,8 +411,8 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
// 如果开启了活体检测
|
|
|
if (Constants.isTrue.equals(isFaceVerifyStr)) {
|
|
|
// 开始分钟数
|
|
|
- String startMinuteStr = CacheHelper
|
|
|
- .getExamOrgProperty(examId, orgId, ExamProperties.FACE_VERIFY_START_MINUTE.name()).getValue();
|
|
|
+ String startMinuteStr = ExamCacheTransferHelper
|
|
|
+ .getCachedExamProperty(examId, orgId, studentId, ExamProperties.FACE_VERIFY_START_MINUTE.name()).getValue();
|
|
|
if (CommonUtil.isBlank(startMinuteStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-getFaceVerifyMinute-001",
|
|
|
ExamProperties.FACE_VERIFY_START_MINUTE.getDesc() + "未设置");
|
|
@@ -420,8 +420,8 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
Integer faceVerifyStartMinute = Integer.valueOf(startMinuteStr);
|
|
|
|
|
|
// 结束分钟数
|
|
|
- String endMinuteStr = CacheHelper
|
|
|
- .getExamOrgProperty(examId, orgId, ExamProperties.FACE_VERIFY_END_MINUTE.name()).getValue();
|
|
|
+ String endMinuteStr = ExamCacheTransferHelper
|
|
|
+ .getCachedExamProperty(examId, orgId, studentId, ExamProperties.FACE_VERIFY_END_MINUTE.name()).getValue();
|
|
|
if (CommonUtil.isBlank(endMinuteStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-getFaceVerifyMinute-002",
|
|
|
ExamProperties.FACE_VERIFY_END_MINUTE.getDesc() + "未设置");
|
|
@@ -493,9 +493,9 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
examSessionInfo.setCourseCode(examStudent.getCourseCode());
|
|
|
examSessionInfo.setPaperType(examStudent.getPaperType());
|
|
|
// EXAM_RECONNECT_TIME:断点续考时间
|
|
|
- String examReconnectTimeStr = CacheHelper
|
|
|
- .getExamOrgProperty(examBean.getId(), examStudent.getOrgId(), ExamProperties.EXAM_RECONNECT_TIME.name())
|
|
|
- .getValue();
|
|
|
+ String examReconnectTimeStr = ExamCacheTransferHelper
|
|
|
+ .getCachedExamProperty(examBean.getId(), examStudent.getOrgId(), examStudent.getStudentId(),
|
|
|
+ ExamProperties.EXAM_RECONNECT_TIME.name()).getValue();
|
|
|
log.debug("11.2 断点时间:" + examReconnectTimeStr);
|
|
|
if (CommonUtil.isBlank(examReconnectTimeStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-initializeExamRecordSession-001",
|
|
@@ -503,9 +503,9 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
}
|
|
|
examSessionInfo.setExamReconnectTime(Integer.valueOf(examReconnectTimeStr));
|
|
|
// FREEZE_TIME:冻结时间
|
|
|
- String freezeTimeStr = CacheHelper
|
|
|
- .getExamOrgProperty(examBean.getId(), examStudent.getOrgId(), ExamProperties.FREEZE_TIME.name())
|
|
|
- .getValue();
|
|
|
+ String freezeTimeStr = ExamCacheTransferHelper
|
|
|
+ .getCachedExamProperty(examBean.getId(), examStudent.getOrgId(), examStudent.getStudentId(),
|
|
|
+ ExamProperties.FREEZE_TIME.name()).getValue();
|
|
|
log.debug("11.3 冻结时间:" + freezeTimeStr);
|
|
|
if (CommonUtil.isBlank(freezeTimeStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-initializeExamRecordSession-002",
|