提交 4f67df4e 编写于 作者: 雪洛's avatar 雪洛

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

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