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

fix: 移除getFacialRecognitionMetaInfo捕获到的错误的as Error

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