|
@@ -163,7 +163,11 @@ export default {
|
|
|
duration: 30
|
|
|
});
|
|
|
}
|
|
|
- this.logout();
|
|
|
+ this.logout(
|
|
|
+ "?LogoutReason=" + this.faceTestEndCalled
|
|
|
+ ? "人脸检测超时"
|
|
|
+ : "人脸检测超时-可续考"
|
|
|
+ );
|
|
|
});
|
|
|
}, 60000); //60000
|
|
|
/**
|
|
@@ -179,12 +183,12 @@ export default {
|
|
|
)
|
|
|
.then(() => {
|
|
|
if (result != "SUCCESS") {
|
|
|
- this.logout();
|
|
|
+ this.logout("?LogoutReason=人脸检测失败");
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$Message.error("上传人脸检测结果出错!");
|
|
|
- this.logout();
|
|
|
+ this.logout("?LogoutReason=上传人脸检测结果出错!");
|
|
|
});
|
|
|
};
|
|
|
/**
|
|
@@ -198,13 +202,17 @@ export default {
|
|
|
content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
|
duration: 30
|
|
|
});
|
|
|
- this.logout();
|
|
|
+ this.logout(
|
|
|
+ "?LogoutReason=第一次人脸检测超时,检测失败,系统退出,请重新登录"
|
|
|
+ );
|
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
|
this.$Message.error({
|
|
|
content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
|
duration: 30
|
|
|
});
|
|
|
- this.logout();
|
|
|
+ this.logout(
|
|
|
+ "?LogoutReason=第一次人脸检测失败,系统退出,请重新登录"
|
|
|
+ );
|
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
|
this.$Message.error({
|
|
|
content: "人脸检测不合格,结束考试",
|
|
@@ -269,7 +277,7 @@ export default {
|
|
|
);
|
|
|
} catch (error) {
|
|
|
this.$Message.error("获取底照token失败,请重新登录!");
|
|
|
- this.logout();
|
|
|
+ this.logout("?LogoutReason=获取底照token失败,请重新登录!");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -279,7 +287,7 @@ export default {
|
|
|
content: "您上传的底照不适合做活体检测,请联系老师!",
|
|
|
duration: 30
|
|
|
});
|
|
|
- this.logout();
|
|
|
+ this.logout("?LogoutReason=您上传的底照不适合做活体检测,请联系老师!");
|
|
|
return;
|
|
|
}
|
|
|
|