|
@@ -288,7 +288,6 @@ export default {
|
|
cameraInfos = cameraInfos.replace(/\r\n/g, "");
|
|
cameraInfos = cameraInfos.replace(/\r\n/g, "");
|
|
cameraInfos = cameraInfos.replace(/\n/g, "");
|
|
cameraInfos = cameraInfos.replace(/\n/g, "");
|
|
console.log(cameraInfos);
|
|
console.log(cameraInfos);
|
|
- this.serverLog("debug/S-001001", cameraInfos);
|
|
|
|
}
|
|
}
|
|
resolve();
|
|
resolve();
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -432,9 +431,8 @@ export default {
|
|
this.faceEnable = true;
|
|
this.faceEnable = true;
|
|
|
|
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
- // this.serverLog("debug/S-002001", "进入考试后60秒内抓拍");
|
|
|
|
// this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
// this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
- // }, 60 * 1000); // 60内秒钟后抓拍
|
|
|
|
|
|
+ // }, 60 * 1000); // 60秒后抓拍
|
|
|
|
|
|
let initSnapshotTrialTimes = 0;
|
|
let initSnapshotTrialTimes = 0;
|
|
this.initSnapInterval = setInterval(() => {
|
|
this.initSnapInterval = setInterval(() => {
|
|
@@ -471,11 +469,6 @@ export default {
|
|
|
|
|
|
this.logout("?LogoutReason=" + "摄像头没有正常启用-退出");
|
|
this.logout("?LogoutReason=" + "摄像头没有正常启用-退出");
|
|
} else {
|
|
} else {
|
|
- this.serverLog(
|
|
|
|
- "debug/S-002001",
|
|
|
|
- "进入考试后60秒内抓拍-" +
|
|
|
|
- `(第${initSnapshotTrialTimes + 1}次尝试)`
|
|
|
|
- );
|
|
|
|
this.logger({
|
|
this.logger({
|
|
action: "答题页面",
|
|
action: "答题页面",
|
|
detail:
|
|
detail:
|
|
@@ -490,21 +483,16 @@ export default {
|
|
// let initSnapshotTrialTimes = 0;
|
|
// let initSnapshotTrialTimes = 0;
|
|
// const initSnapshot = setTimeout(() => {
|
|
// const initSnapshot = setTimeout(() => {
|
|
// if (this.exam || initSnapshotTrialTimes < 6) {
|
|
// if (this.exam || initSnapshotTrialTimes < 6) {
|
|
- // this.serverLog("debug/S-002001", "进入考试后60秒内抓拍");
|
|
|
|
// this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
// this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
// } else {
|
|
// } else {
|
|
// setTimeout(() => initSnapshot(), 5 * 1000);
|
|
// setTimeout(() => initSnapshot(), 5 * 1000);
|
|
// }
|
|
// }
|
|
- // }, 5 * 1000); // 60内秒钟后抓拍
|
|
|
|
|
|
+ // }, 5 * 1000);
|
|
|
|
|
|
if (examProp.SNAPSHOT_INTERVAL) {
|
|
if (examProp.SNAPSHOT_INTERVAL) {
|
|
const SNAPSHOT_INTERVAL = JSON.parse(examProp.SNAPSHOT_INTERVAL);
|
|
const SNAPSHOT_INTERVAL = JSON.parse(examProp.SNAPSHOT_INTERVAL);
|
|
// 考务设置抓拍间隔
|
|
// 考务设置抓拍间隔
|
|
this.snapInterval = setInterval(() => {
|
|
this.snapInterval = setInterval(() => {
|
|
- // this.serverLog(
|
|
|
|
- // "debug/S-002001",
|
|
|
|
- // "根据抓拍间隔抓拍:抓拍间隔=" + SNAPSHOT_INTERVAL + "分钟"
|
|
|
|
- // );
|
|
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
}, SNAPSHOT_INTERVAL * 60 * 1000);
|
|
}, SNAPSHOT_INTERVAL * 60 * 1000);
|
|
}
|
|
}
|
|
@@ -673,7 +661,10 @@ export default {
|
|
if (!enoughTimeForFaceId) return;
|
|
if (!enoughTimeForFaceId) return;
|
|
|
|
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
- // this.serverLog("debug/S-002001", "活体检测前抓拍");
|
|
|
|
|
|
+ this.logger({
|
|
|
|
+ action: "答题页面",
|
|
|
|
+ detail: "活体检测前抓拍",
|
|
|
|
+ });
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
content: "30秒后开始指定动作检测",
|
|
content: "30秒后开始指定动作检测",
|
|
@@ -682,7 +673,6 @@ export default {
|
|
});
|
|
});
|
|
}, faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
}, faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
this.faceIdDivTimeout = setTimeout(() => {
|
|
this.faceIdDivTimeout = setTimeout(() => {
|
|
- // this.serverLog("debug/S-003001", "准备弹出活体检测框");
|
|
|
|
if (identificationOfLivingBodyScheme === "S1") {
|
|
if (identificationOfLivingBodyScheme === "S1") {
|
|
this.showFaceId = true;
|
|
this.showFaceId = true;
|
|
} else if (identificationOfLivingBodyScheme === "S2") {
|
|
} else if (identificationOfLivingBodyScheme === "S2") {
|
|
@@ -713,6 +703,10 @@ export default {
|
|
} else if (faceLiveResult.needNextVerify) {
|
|
} else if (faceLiveResult.needNextVerify) {
|
|
const initFaceLivenessResult = await this.initFaceLiveness();
|
|
const initFaceLivenessResult = await this.initFaceLiveness();
|
|
if (initFaceLivenessResult === false) {
|
|
if (initFaceLivenessResult === false) {
|
|
|
|
+ this.logger({
|
|
|
|
+ action: "答题页面",
|
|
|
|
+ detail: "活检接口再次获取失败-退出",
|
|
|
|
+ });
|
|
window._hmt.push([
|
|
window._hmt.push([
|
|
"_trackEvent",
|
|
"_trackEvent",
|
|
"答题页面",
|
|
"答题页面",
|
|
@@ -769,10 +763,6 @@ export default {
|
|
" |||| " +
|
|
" |||| " +
|
|
(((error.response || {}).data || {}).desc || ""),
|
|
(((error.response || {}).data || {}).desc || ""),
|
|
]);
|
|
]);
|
|
- this.serverLog(
|
|
|
|
- "debug/S-008001",
|
|
|
|
- `提交答案失败 => 考试剩余时间:${this.remainTime / 1000}`
|
|
|
|
- );
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -827,7 +817,6 @@ export default {
|
|
this.logger({ action: "正在交卷,请耐心等待..." });
|
|
this.logger({ action: "正在交卷,请耐心等待..." });
|
|
if (this.faceEnable) {
|
|
if (this.faceEnable) {
|
|
this.logger({ action: "交卷前抓拍" });
|
|
this.logger({ action: "交卷前抓拍" });
|
|
- this.serverLog("debug/S-002001", "交卷前抓拍");
|
|
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
}
|
|
}
|
|
// 确保抓拍指令在交卷前执行,同时确保5秒间隔提交答案的指令执行了
|
|
// 确保抓拍指令在交卷前执行,同时确保5秒间隔提交答案的指令执行了
|