|
@@ -148,25 +148,25 @@ export default {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
- duration: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
this.logout();
|
|
this.logout();
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
- duration: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
this.logout();
|
|
this.logout();
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "人脸检测不合格,结束考试",
|
|
content: "人脸检测不合格,结束考试",
|
|
- duration: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
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: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
}
|
|
}
|
|
@@ -175,13 +175,13 @@ export default {
|
|
// FIXME: 什么逻辑?
|
|
// FIXME: 什么逻辑?
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
content: "人脸检测成功,请继续完成考试",
|
|
content: "人脸检测成功,请继续完成考试",
|
|
- duration: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
} else {
|
|
} else {
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
content: "人脸检测不合格,结束考试",
|
|
content: "人脸检测不合格,结束考试",
|
|
- duration: 15000
|
|
|
|
|
|
+ duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("FAILED");
|
|
this.faceTestEndHandle("FAILED");
|
|
}
|
|
}
|