|
@@ -315,21 +315,44 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
async fetchData() {
|
|
async fetchData() {
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
- // FIXME: 失败了再取?
|
|
|
|
- const faceBiopsyInfoData = await this.$http.get(
|
|
|
|
|
|
+ // 失败了再取
|
|
|
|
+ const faceBiopsyInfoData = await this.$httpGetRetry(
|
|
"/api/ecs_oe_student/faceBiopsy/getFaceBiopsyInfo?examRecordDataId=" +
|
|
"/api/ecs_oe_student/faceBiopsy/getFaceBiopsyInfo?examRecordDataId=" +
|
|
examRecordDataId
|
|
examRecordDataId
|
|
);
|
|
);
|
|
|
|
+ if (typeof faceBiopsyInfoData === undefined) {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "获取活体检测信息失败,退出登录",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true,
|
|
|
|
+ });
|
|
|
|
+ this.logout("?LogoutReason=获取活体检测信息失败");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // const faceBiopsyInfoData = await this.$http.get(
|
|
|
|
+ // "/api/ecs_oe_student/faceBiopsy/getFaceBiopsyInfo?examRecordDataId=" +
|
|
|
|
+ // examRecordDataId
|
|
|
|
+ // );
|
|
|
|
|
|
const faceBiopsyInfo = faceBiopsyInfoData.data;
|
|
const faceBiopsyInfo = faceBiopsyInfoData.data;
|
|
console.log(faceBiopsyInfo);
|
|
console.log(faceBiopsyInfo);
|
|
this.faceBiopsyInfo = faceBiopsyInfo;
|
|
this.faceBiopsyInfo = faceBiopsyInfo;
|
|
},
|
|
},
|
|
async closeMe() {
|
|
async closeMe() {
|
|
- const faceLiveResultData = await this.$http.post(
|
|
|
|
|
|
+ const faceLiveResultData = await this.$httpPostRetry(
|
|
"/api/ecs_oe_student/faceBiopsy/saveFaceBiopsyResult",
|
|
"/api/ecs_oe_student/faceBiopsy/saveFaceBiopsyResult",
|
|
this.finalResult
|
|
this.finalResult
|
|
);
|
|
);
|
|
|
|
+ if (typeof faceLiveResultData === undefined) {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "保存活体检测信息失败,退出登录",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true,
|
|
|
|
+ });
|
|
|
|
+ this.logout("?LogoutReason=保存活体检测信息失败");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
const faceLiveResult = faceLiveResultData.data;
|
|
const faceLiveResult = faceLiveResultData.data;
|
|
console.log(faceLiveResult);
|
|
console.log(faceLiveResult);
|
|
this.$emit("closeFaceMotion", faceLiveResult);
|
|
this.$emit("closeFaceMotion", faceLiveResult);
|
|
@@ -671,6 +694,8 @@ export default {
|
|
console.log(error);
|
|
console.log(error);
|
|
} finally {
|
|
} finally {
|
|
// this.pauseDetecting = false;
|
|
// this.pauseDetecting = false;
|
|
|
|
+ // 未完成同步比对,继续进行
|
|
|
|
+ if (!this.doneCompare) this.pauseDetecting = false;
|
|
this.videoStartPlay();
|
|
this.videoStartPlay();
|
|
}
|
|
}
|
|
}
|
|
}
|