|
@@ -86,6 +86,10 @@ export default {
|
|
this.$Message.error("IP受限,请到中心指定地点进行考试!");
|
|
this.$Message.error("IP受限,请到中心指定地点进行考试!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (ipLimit === undefined) {
|
|
|
|
+ this.spinShow = false;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
// TODO: 待确认. 前端控制展示“是否进入考试”。后端控制不在有效期内不准访问。
|
|
// TODO: 待确认. 前端控制展示“是否进入考试”。后端控制不在有效期内不准访问。
|
|
if (course.faceEnable) {
|
|
if (course.faceEnable) {
|
|
@@ -104,12 +108,19 @@ export default {
|
|
course.examId +
|
|
course.examId +
|
|
`/IS_FACE_VERIFY`
|
|
`/IS_FACE_VERIFY`
|
|
);
|
|
);
|
|
|
|
+ if (faceLiveness.data === undefined) {
|
|
|
|
+ this.spinShow = false;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (faceLiveness.data) {
|
|
if (faceLiveness.data) {
|
|
this.processingMessage = "正在检测底照是否满足活体检测标准...";
|
|
this.processingMessage = "正在检测底照是否满足活体检测标准...";
|
|
const checkBasePhoto = (await this.$http.get(
|
|
const checkBasePhoto = (await this.$http.get(
|
|
"/api/ecs_oe_student/examFaceLivenessVerify/checkFaceLiveness"
|
|
"/api/ecs_oe_student/examFaceLivenessVerify/checkFaceLiveness"
|
|
)).data;
|
|
)).data;
|
|
this.spinShow = false;
|
|
this.spinShow = false;
|
|
|
|
+ if (checkBasePhoto === undefined) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (!checkBasePhoto.success) {
|
|
if (!checkBasePhoto.success) {
|
|
this.$Message.error(
|
|
this.$Message.error(
|
|
"您上传的底照不符合活体检测的要求,请联系老师!"
|
|
"您上传的底照不符合活体检测的要求,请联系老师!"
|