[fix]【更换人脸识别厂商】上一次人脸识别失败影像到下一次的签名进入

This commit is contained in:
yuweiqi
2020-05-28 11:38:10 +08:00
parent 27c933942a
commit 75d94907da

View File

@@ -419,7 +419,10 @@ export default {
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
}
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if ((localStorage['faceAuthWeXin-requestId'] || localStorage['faceAuthWeXin-bizToken']) && this.$route.query.faceAuthCountWeixin) {
localStorage['faceAuthWeXin-requestId'] = undefined
localStorage['faceAuthWeXin-bizToken'] = undefined
} else if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && !this.$route.query.faceAuthCountWeixin) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
}
}, 5000)