|
@@ -42,11 +42,16 @@ const examRecordDataId = +route.params.examRecordDataId;
|
|
|
store.exam.examId = examId;
|
|
|
store.exam.examRecordDataId = examRecordDataId;
|
|
|
|
|
|
+//#region 人脸抓拍与活体检测
|
|
|
+let { snapId, doSnap, showSnapResult } = useFaceCompare();
|
|
|
+let { showFaceId } = useFaceLive(doSnap);
|
|
|
+
|
|
|
useScreenTop(examRecordDataId);
|
|
|
useWXSocket();
|
|
|
const { userSubmitPaper, realSubmitPaper } = useRealSubmitPaper(
|
|
|
examId,
|
|
|
- examRecordDataId
|
|
|
+ examRecordDataId,
|
|
|
+ doSnap
|
|
|
);
|
|
|
|
|
|
async function userClickSubmit() {
|
|
@@ -126,10 +131,6 @@ function onStartAnswer({
|
|
|
usedExamTimes.startTimestamp = Date.now()
|
|
|
}
|
|
|
|
|
|
-//#region 人脸抓拍与活体检测
|
|
|
-let { snapId, doSnap, showSnapResult } = useFaceCompare();
|
|
|
-let { showFaceId } = useFaceLive(doSnap);
|
|
|
-
|
|
|
type CompareResult = { hasError: boolean; fileName: string };
|
|
|
function onCompareResult({ hasError, fileName }: CompareResult) {
|
|
|
if (hasError) {
|