|
@@ -157,7 +157,7 @@ public class SyncExamRecordDataJobHandler {
|
|
|
Long examId = examRecordDataCache.getExamId();
|
|
|
Long studentId = examRecordDataCache.getStudentId();
|
|
|
|
|
|
- // 是否开启人脸比对检测
|
|
|
+ // 是否开启人脸验证
|
|
|
if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, studentId)) {
|
|
|
// 获取同步抓拍照片处理结果(Mysql中)
|
|
|
ExamSyncCaptureBean syncCapture = commonService.getExamSyncCapture(examRecordDataId);
|
|
@@ -167,14 +167,17 @@ public class SyncExamRecordDataJobHandler {
|
|
|
List<ExamCaptureBean> captures = commonService.getExamCaptures(examRecordDataId);
|
|
|
syncReq.setExamCaptures(captures);
|
|
|
|
|
|
- // S1 FACE_ID FaceID活体检测方案(即旧活体检测方案)
|
|
|
- syncReq.setExamFaceLivenessVerifies(commonService.getExamFaceLivenessVerifies(examRecordDataId));
|
|
|
+ // 是否开启考中人脸活体检测
|
|
|
+ if (FaceBiopsyHelper.isFaceVerify(rootOrgId, examId, studentId)) {
|
|
|
+ // S1 FACE_ID FaceID活体检测方案(即旧活体检测方案)
|
|
|
+ syncReq.setExamFaceLivenessVerifies(commonService.getExamFaceLivenessVerifies(examRecordDataId));
|
|
|
|
|
|
- // S2 FACE_MOTION 自研活体检测方案【已废弃】
|
|
|
- syncReq.setFaceBiopsy(commonService.getFaceBiopsy(examRecordDataId));
|
|
|
+ // S2 FACE_MOTION 自研活体检测方案【已废弃】
|
|
|
+ syncReq.setFaceBiopsy(commonService.getFaceBiopsy(examRecordDataId));
|
|
|
|
|
|
- // S3 FACE_CLIENT C端活体检测方案
|
|
|
- syncReq.setFaceLiveVerifyRecords(commonService.getFaceLiveVerifyRecords(examRecordDataId));
|
|
|
+ // S3 FACE_CLIENT C端活体检测方案
|
|
|
+ syncReq.setFaceLiveVerifyRecords(commonService.getFaceLiveVerifyRecords(examRecordDataId));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 考试记录信息
|