|
@@ -101,6 +101,7 @@ export default {
|
|
if (!enoughTimeForFaceId) return;
|
|
if (!enoughTimeForFaceId) return;
|
|
|
|
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
|
|
+ this.serverLog("debug/S-002001", "活体检测前抓拍");
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
this.$Message.info("30秒后开始活体检测");
|
|
this.$Message.info("30秒后开始活体检测");
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
@@ -133,6 +134,7 @@ export default {
|
|
this.faceEnable = true;
|
|
this.faceEnable = true;
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ this.serverLog("debug/S-002001", "进入考试后5秒抓拍");
|
|
this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
|
|
}, 5 * 1000); // 5秒钟后抓拍
|
|
}, 5 * 1000); // 5秒钟后抓拍
|
|
|
|
|
|
@@ -145,6 +147,10 @@ export default {
|
|
if (snapshotInterval.data) {
|
|
if (snapshotInterval.data) {
|
|
// 考务设置抓拍间隔
|
|
// 考务设置抓拍间隔
|
|
this.snapInterval = setInterval(() => {
|
|
this.snapInterval = setInterval(() => {
|
|
|
|
+ this.serverLog(
|
|
|
|
+ "debug/S-002001",
|
|
|
|
+ "根据抓拍间隔抓拍:抓拍间隔=" + snapshotInterval.data
|
|
|
|
+ );
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
}, snapshotInterval.data * 60 * 1000);
|
|
}, snapshotInterval.data * 60 * 1000);
|
|
}
|
|
}
|
|
@@ -184,15 +190,7 @@ export default {
|
|
CameraInfo = CameraInfo.replace(/\r\n/g, "");
|
|
CameraInfo = CameraInfo.replace(/\r\n/g, "");
|
|
CameraInfo = CameraInfo.replace(/\n/g, "");
|
|
CameraInfo = CameraInfo.replace(/\n/g, "");
|
|
console.log(CameraInfo);
|
|
console.log(CameraInfo);
|
|
- this.$http.post(
|
|
|
|
- "/api/ecs_core/log/studentClient/debug/S-001001",
|
|
|
|
- CameraInfo,
|
|
|
|
- {
|
|
|
|
- headers: {
|
|
|
|
- "Content-Type": "text/plain"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ this.serverLog("debug/S-001001", CameraInfo);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
} catch (error) {
|
|
} catch (error) {
|