外国人永久居住证人脸识别的时候传递证件类型

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-23 14:44:38 +08:00
parent 256eefb80e
commit 5a95805d87

View File

@@ -801,9 +801,10 @@ export default {
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
} else {
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
this.recognition()
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType
this.recognition()
}
// if (this.faceAuthCount.appnt < this.smsAuthNum) {
// this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
@@ -858,9 +859,10 @@ export default {
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
} else {
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
this.recognition()
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType
this.recognition()
}
// if (this.faceAuthCount.insured < this.smsAuthNum) {
// this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
@@ -905,11 +907,16 @@ export default {
}
if (this.faceAuthCount.appnt < this.smsAuthNum) {
// 人脸识别
let thisidType = ''
if(that.saleInsuredInfo.idType == 8) {
thisidType = '05'
}
//eslint-disable-next-line no-undef
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
name: that.saleInsuredInfo.name, //姓名
idType: thisidType, //证件类型
}).then((data) => {
if (JSON.parse(data).state == '1') {
// 保存rid 数据
@@ -969,11 +976,16 @@ export default {
// 人脸识别
if (this.faceAuthCount.insured < this.smsAuthNum) {
let thisidType = ''
if(that.saleInsuredPersonInfo.idType == 8) {
thisidType = '05'
}
// 调原生人脸识别
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredPersonInfo.idNo, //身份证号码
name: that.saleInsuredPersonInfo.name //姓名
name: that.saleInsuredPersonInfo.name, //姓名
idType: thisidType, //证件类型
}).then((data) => {
if (JSON.parse(data).state == '1') {
that.saveCustomerRidInfo('insured_rid', 'B')
@@ -1746,6 +1758,9 @@ export default {
redirectUrl: this.idcardData.redirectUrl,
businessSource: this.idcardData.businessSource
}
if(this.idcardData.idType == 8) {
data.idType = '05'
}
getRecognitionUrl(data).then(
(res) => {
if (res.result == '0') {