Explorar el Código

同步照片不存在,提示非法数据

qinchao hace 4 años
padre
commit
98fa5315b1

+ 5 - 1
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/SyncExamDataCloudServiceProvider.java

@@ -172,7 +172,11 @@ public class SyncExamDataCloudServiceProvider extends ControllerSupport implemen
         if (null != req.getExamSyncCapture()) {
             syncExamSyncCapture(req.getExamSyncCapture(), realExamRecordDataId);
         } else {
-            examAuditService.saveHeaderWarnAudit(realExamRecordDataId);
+            //且开启摄像头
+            if(FaceBiopsyHelper.isFaceEnable(transitionExamRecordData.getRootOrgId()
+                    , transitionExamRecordData.getExamId(), transitionExamRecordData.getStudentId())){
+                examAuditService.saveHeaderWarnAudit(realExamRecordDataId);
+            }
         }
 
         startTime = this.debugCost("7 同步抓拍照片结果(同步抓拍的数据)", transitionExamRecordDataId, startTime);