Răsfoiți Sursa

update 虚拟设备审核

deason 1 an în urmă
părinte
comite
af70bee584

+ 0 - 8
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/ExamRecordDataService.java

@@ -55,14 +55,6 @@ public interface ExamRecordDataService {
 
     ExamRecordData processAfterHandInExam(ExamRecordData examRecordData);
 
-    /**
-     * Description 是否开启虚拟摄像头进入待审核
-     *
-     * @param examId 考试id
-     * @return boolean
-     */
-    boolean isVirtualToWaiting(Long examId);
-
     /**
      * 按ID分片获取未同步的考试记录列表
      */

+ 0 - 8
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/impl/ExamRecordDataServiceImpl.java

@@ -25,7 +25,6 @@ import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
 import cn.com.qmth.examcloud.web.exception.SequenceLockException;
 import cn.com.qmth.examcloud.web.helpers.SequenceLockHelper;
 import cn.com.qmth.examcloud.web.redis.RedisClient;
-import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.lang3.ArrayUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
@@ -235,13 +234,6 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
         return examRecordData;
     }
 
-    @Override
-    public boolean isVirtualToWaiting(Long examId) {
-        String valueSql = "SELECT value FROM ec_e_exam_prop WHERE exam_id =" + examId + " AND key_id=45";
-        List<Boolean> list = jdbcTemplate.query(valueSql, (rs, rowNum) -> rs.getBoolean("value"));
-        return !CollectionUtils.isEmpty(list) && list.get(0);
-    }
-
     /**
      * 按ID分片获取未同步的考试记录列表
      */

+ 2 - 10
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/job/SyncExamRecordDataJobHandler.java

@@ -167,20 +167,12 @@ public class SyncExamRecordDataJobHandler {
             List<ExamCaptureBean> captures = commonService.getExamCaptures(examRecordDataId);
             syncReq.setExamCaptures(captures);
 
-            // 是否开启“虚拟摄像头进入待审” VIRTUAL_CAMERA_AUDIT_ENABLED
-            boolean virtualCameraAuditEnabled = examRecordDataService.isVirtualToWaiting(examId);
-            if (virtualCameraAuditEnabled) {
-                boolean hasVirtualCamera = captures.stream().anyMatch(e -> e.getHasVirtualCamera() != null && e.getHasVirtualCamera());
-                if (syncCapture == null || hasVirtualCamera) {
-                    // 没有同步抓拍照片处理结果 或 存在虚拟摄像头,则进入待审
-                    examRecordDataCache.setIsWarn(true);
-                }
-            }
-
             // S1 FACE_ID FaceID活体检测方案(即旧活体检测方案)
             syncReq.setExamFaceLivenessVerifies(commonService.getExamFaceLivenessVerifies(examRecordDataId));
+
             // S2 FACE_MOTION 自研活体检测方案【已废弃】
             syncReq.setFaceBiopsy(commonService.getFaceBiopsy(examRecordDataId));
+
             // S3 FACE_CLIENT C端活体检测方案
             syncReq.setFaceLiveVerifyRecords(commonService.getFaceLiveVerifyRecords(examRecordDataId));
         }