|
@@ -389,27 +389,39 @@ export default {
|
|
|
this.redoBtnMsg = "正在进入人脸检测...";
|
|
|
|
|
|
let response = null;
|
|
|
- try {
|
|
|
- if (this.faceVerifyId) {
|
|
|
+ if (this.faceVerifyId) {
|
|
|
+ try {
|
|
|
response = await this.$http.get(
|
|
|
"/api/ecs_oe_student/examFaceLivenessVerify/getFaceVerifyToken/" +
|
|
|
this.faceVerifyId
|
|
|
);
|
|
|
- } else {
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ this.showRedo("网络异常,请手动点击重试");
|
|
|
+ window._hmt.push([
|
|
|
+ "_trackEvent",
|
|
|
+ "活体检测弹出框",
|
|
|
+ "网络异常-getFaceVerifyToken",
|
|
|
+ ]);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ try {
|
|
|
response = await this.$http.get(
|
|
|
"/api/ecs_oe_student/examFaceLivenessVerify/startFaceVerify/" +
|
|
|
this.examRecordId
|
|
|
);
|
|
|
+ this.faceVerifyId = response.data.faceVerifyId;
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ this.$Message.error({
|
|
|
+ content: "获取底照token失败,请重新登录!",
|
|
|
+ duration: 15,
|
|
|
+ closable: true,
|
|
|
+ });
|
|
|
+ this.logout("?LogoutReason=获取底照token失败,请重新登录!");
|
|
|
+ return;
|
|
|
}
|
|
|
- this.faceVerifyId = response.data.faceVerifyId;
|
|
|
- } catch (error) {
|
|
|
- this.$Message.error({
|
|
|
- content: "获取底照token失败,请重新登录!",
|
|
|
- duration: 15,
|
|
|
- closable: true,
|
|
|
- });
|
|
|
- this.logout("?LogoutReason=获取底照token失败,请重新登录!");
|
|
|
- return;
|
|
|
}
|
|
|
|
|
|
if (!response.data.success) {
|