|
@@ -21,6 +21,7 @@ import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
|
import cn.com.qmth.examcloud.support.examing.ExamingHeartbeat;
|
|
|
import cn.com.qmth.examcloud.support.examing.ExamingSession;
|
|
|
import cn.com.qmth.examcloud.support.helper.ExamCacheTransferHelper;
|
|
|
+import cn.com.qmth.examcloud.support.helper.FaceBiopsyHelper;
|
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -163,6 +164,12 @@ public class ExamFaceLiveVerifyServiceImpl implements ExamFaceLiveVerifyService
|
|
|
throw new StatusException("考试记录无效");
|
|
|
}
|
|
|
|
|
|
+ //开启了人脸检测
|
|
|
+ if (!FaceBiopsyHelper.isFaceVerify(examRecordData.getRootOrgId(), examRecordData.getExamId(), examRecordData.getStudentId())) {
|
|
|
+ //如果未开启人脸活体检测,则返回null
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
ExamingSession examingSession = examingSessionService.getExamingSession(examRecordData.getStudentId());
|
|
|
if (examingSession == null) {
|
|
|
throw new StatusException("考试会话已过期");
|