Browse Source

faceid api更改

Michael Wang 5 years ago
parent
commit
c4bcbd79c8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/features/OnlineExam/Examing/FaceId.vue

+ 3 - 2
src/features/OnlineExam/Examing/FaceId.vue

@@ -212,9 +212,10 @@ export default {
         console.log("faceid websocket response: ", response);
         if (response.data.indexOf("verifyResult") > -1) {
           this.haveReceivedMsg = true;
-          var receivedMsg = JSON.parse(response.data);
+          var receivedMsgData = JSON.parse(response.data);
+          var receivedMsg = JSON.parse(receivedMsgData.content.returnMsgJson);
           // 两个结束点。第二个结束点:从websocket得到消息。
-          this.faceTestEnd(receivedMsg.content);
+          this.faceTestEnd(receivedMsg);
           clearTimeout(this.faceIdTimeout);
           clearInterval(this.timeCountInterval);
           this.$emit("closeFaceId");