|
@@ -645,13 +645,26 @@ export default {
|
|
|
closeFaceId() {
|
|
|
this.showFaceId = false;
|
|
|
},
|
|
|
- closeFaceMotion(faceLiveResult) {
|
|
|
+ async closeFaceMotion(faceLiveResult) {
|
|
|
this.showFaceMotion = false;
|
|
|
console.log(faceLiveResult);
|
|
|
if (faceLiveResult.endExam) {
|
|
|
this.logout("?LogoutReason=活检后台交卷");
|
|
|
} else if (faceLiveResult.needNextVerify) {
|
|
|
- this.initFaceLiveness();
|
|
|
+ const initFaceLivenessResult = await this.initFaceLiveness();
|
|
|
+ if (initFaceLivenessResult === false) {
|
|
|
+ window._hmt.push([
|
|
|
+ "_trackEvent",
|
|
|
+ "正在考试页面",
|
|
|
+ "活检接口再次获取失败-退出",
|
|
|
+ ]);
|
|
|
+ this.$Message.error({
|
|
|
+ content: "获取考试和试卷信息失败,退出登录",
|
|
|
+ duration: 15,
|
|
|
+ closable: true,
|
|
|
+ });
|
|
|
+ this.logout("?LogoutReason=活检接口再次获取失败-退出");
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async answerAllQuestions(ignoreDirty) {
|