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