提交 47cb066c 编写于 作者: 雪洛's avatar 雪洛

chore: 标准基座已内置实人认证无需额外处理错误信息

上级 4ee1b1db
...@@ -47,19 +47,7 @@ ...@@ -47,19 +47,7 @@
return return
} }
const testFacialCo = uniCloud.importObject('facial-recognition-co') const testFacialCo = uniCloud.importObject('facial-recognition-co')
let metaInfo : string let metaInfo = uni.getFacialRecognitionMetaInfo();
try {
metaInfo = uni.getFacialRecognitionMetaInfo();
} catch (e) {
if ((e as Error).message!.indexOf('Failed resolution of') > -1) {
uni.showModal({
title: '提示',
content: '注意:目前uni-app x内使用实人认证功能需要打包自定义基座。',
showCancel: false
})
}
throw e
}
testFacialCo.getCertifyId({ testFacialCo.getCertifyId({
realName, realName,
idCard, idCard,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册