|
@@ -166,7 +166,8 @@ export default {
|
|
if (!this.faceTestEndCalled) {
|
|
if (!this.faceTestEndCalled) {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "人脸检测超时,系统退出,请重新登录",
|
|
content: "人脸检测超时,系统退出,请重新登录",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.logout(
|
|
this.logout(
|
|
@@ -218,7 +219,8 @@ export default {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.logout(
|
|
this.logout(
|
|
"?LogoutReason=第一次活体检测超时,检测失败,系统退出,请重新登录"
|
|
"?LogoutReason=第一次活体检测超时,检测失败,系统退出,请重新登录"
|
|
@@ -226,7 +228,8 @@ export default {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.logout(
|
|
this.logout(
|
|
"?LogoutReason=第一次活体检测失败,系统退出,请重新登录"
|
|
"?LogoutReason=第一次活体检测失败,系统退出,请重新登录"
|
|
@@ -234,13 +237,15 @@ export default {
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "人脸检测不合格,结束考试",
|
|
content: "人脸检测不合格,结束考试",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.faceTestEndHandle("FAILED");
|
|
this.faceTestEndHandle("FAILED");
|
|
} else if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
content: "人脸检测成功,请继续完成考试",
|
|
content: "人脸检测成功,请继续完成考试",
|
|
- duration: 15
|
|
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
}
|
|
}
|
|
@@ -248,13 +253,15 @@ export default {
|
|
if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
content: "人脸检测成功,请继续完成考试",
|
|
content: "人脸检测成功,请继续完成考试",
|
|
- duration: 15
|
|
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
} else {
|
|
} else {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "人脸检测不合格,结束考试",
|
|
content: "人脸检测不合格,结束考试",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.faceTestEndHandle("FAILED");
|
|
this.faceTestEndHandle("FAILED");
|
|
}
|
|
}
|
|
@@ -303,7 +310,8 @@ export default {
|
|
console.log(response.data.errorMsg);
|
|
console.log(response.data.errorMsg);
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "您上传的底照不适合做活体检测,请联系老师!",
|
|
content: "您上传的底照不适合做活体检测,请联系老师!",
|
|
- duration: 30
|
|
|
|
|
|
+ duration: 30,
|
|
|
|
+ closable: true
|
|
});
|
|
});
|
|
this.logout("?LogoutReason=您上传的底照不适合做活体检测,请联系老师!");
|
|
this.logout("?LogoutReason=您上传的底照不适合做活体检测,请联系老师!");
|
|
return;
|
|
return;
|