|
@@ -362,7 +362,7 @@ export default {
|
|
paperStructData.data,
|
|
paperStructData.data,
|
|
];
|
|
];
|
|
|
|
|
|
- let initFaceLivenessResult = false;
|
|
|
|
|
|
+ let initFaceLivenessResult = null;
|
|
if (faceLivenessEnabled) {
|
|
if (faceLivenessEnabled) {
|
|
initFaceLivenessResult = await this.initFaceLiveness();
|
|
initFaceLivenessResult = await this.initFaceLiveness();
|
|
}
|
|
}
|
|
@@ -377,15 +377,19 @@ export default {
|
|
exam === undefined ||
|
|
exam === undefined ||
|
|
paperStruct === undefined ||
|
|
paperStruct === undefined ||
|
|
examQuestionListData === undefined ||
|
|
examQuestionListData === undefined ||
|
|
- initFaceLivenessResult === false
|
|
|
|
|
|
+ (faceLivenessEnabled && initFaceLivenessResult === null)
|
|
) {
|
|
) {
|
|
- this.$Message.error({
|
|
|
|
- content: "获取考试和试卷信息失败",
|
|
|
|
- duration: 15,
|
|
|
|
- closable: true,
|
|
|
|
|
|
+ console.log({
|
|
|
|
+ weixinAnswerEnabled,
|
|
|
|
+ faceCheckEnabled,
|
|
|
|
+ faceLivenessEnabled,
|
|
|
|
+ examProp,
|
|
|
|
+ exam,
|
|
|
|
+ paperStruct,
|
|
|
|
+ examQuestionListData,
|
|
|
|
+ initFaceLivenessResult,
|
|
});
|
|
});
|
|
- this.logout("?LogoutReason=获取考试和试卷信息失败");
|
|
|
|
- return;
|
|
|
|
|
|
+ throw "获取考试和试卷信息失败";
|
|
}
|
|
}
|
|
|
|
|
|
exam.WEIXIN_ANSWER_ENABLED = weixinAnswerEnabled;
|
|
exam.WEIXIN_ANSWER_ENABLED = weixinAnswerEnabled;
|