|
@@ -136,7 +136,11 @@ export default {
|
|
|
|
|
|
let initSnapshotTrialTimes = 0;
|
|
let initSnapshotTrialTimes = 0;
|
|
this.initSnapInterval = setInterval(() => {
|
|
this.initSnapInterval = setInterval(() => {
|
|
- if (this.exam || initSnapshotTrialTimes > 12) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ // 在数据取完,并且超过30秒后,摄像头必须工作正常才行。或者超过60秒后,直接抓拍。
|
|
|
|
+ (this.exam && initSnapshotTrialTimes > 5) ||
|
|
|
|
+ initSnapshotTrialTimes > 10
|
|
|
|
+ ) {
|
|
clearInterval(this.initSnapInterval);
|
|
clearInterval(this.initSnapInterval);
|
|
this.serverLog(
|
|
this.serverLog(
|
|
"debug/S-002001",
|
|
"debug/S-002001",
|