开通阿里云的实人认证,可以按次数收费,也可买流量包
uniapp的原生插件下载地址:https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/cloudauth_sdk/identity_platform/UniApp/IdentityPlatformUniPlugin-20221108.zip
前端代码
//加载增强版实人认证插件。 const verifyPlugin = uni.requireNativePlugin('IdentityPlatformUniPlugin'); export default { onLoad() { //调用getMetaInfo获取MetaInfo数据。 var metaInfo = verifyPlugin.getMetaInfo(); console.log(metaInfo); } } 增强版实人认证服务代码示例: verifyPlugin.faceVerify({ "certifyId":"xxx" //填写从服务端获取的CertifyId。 }, function(response){ }); //response返回格式。 { code:1000, //错误码。 message:认证通过, //错误码描述。 deviceToken:xxx, //设备Token(如果 }后端sdk
参考文档:https://help.aliyun.com/zh/id-verification/enhanced-id-verification/developer-reference/server-side-integration-12
网友回复
js如何流式输出ai的回答并折叠代码块,点击代码块右侧可预览代码?
ai大模型如何将文章转换成可视化一目了然的图片流程图图表?
大模型生成html版本的ui原型图和ppt演示文档的系统提示词怎么写?
rtsp视频直播流如何转换成websocket流在h5页面上观看?
为啥coze会开源工作流agent coze studio?
如何检测网页是通过收藏夹打开的?
python如何实现类似php的http动态脚本请求处理响应代码?
js如何实现类似php的http动态脚本请求处理响应代码?
trae与solo有啥区别不同?
vue如何让ai动态生成问卷调查多步骤表单式收集基础信息自动规划执行任务?