uni-app 实人认证一直提示【Error: 缺失参数[spaceId]】
uni-app 实人认证一直提示【Error: 缺失参数[spaceId]】
信息类别 | 内容 |
---|---|
产品分类 | uniapp/App |
PC开发环境 | Windows |
PC版本号 | win10 |
HBuilderX类型 | 正式 |
HBuilderX版本 | 3.98 |
手机系统 | Android |
手机系统版本 | Android 12 |
手机厂商 | 小米 |
手机机型 | Redmi Note 9 |
页面类型 | vue |
vue版本 | vue2 |
打包方式 | 云端 |
项目创建方式 | HBuilderX |
操作步骤:
exports.main = async (event, context) => {
//event为客户端上传的参数
console.log('event : ', JSON.stringify(event))
// {"deviceType":"android","appVersion":"1.0.0","osVersion":"12","appName":"com.yichuang.fantuan","nfcSupport":"N","bioMetaInfo":"7.1.2:393216,0","apdidToken":"keTWPzsNhklQvBBPfelMtDtTYUZpp+CrHtJlbvwmxsVmmcxSjAEAAA==","deviceModel":"M2007J22C","sdkVersion":"2.3.7","securityVersion":"2","zimVer":"1.0.0","voiceSdkVersion":"1.0.0"}
const frvManager = uniCloud.getFacialRecognitionVerifyManager({
requestId: getUUID(true),
appId:"__UNI__8095731"
})
const result = frvManager.getCertifyId({
realName: event.realName,
idCard: event.idCard,
metaInfo: event.metaInfo
})
//返回数据给客户端
return result
};
预期结果:
返回certifyId
实际结果:
17:52:13.756 [本地调试]Error: 缺失参数[spaceId] 17:52:13.756 [本地调试] at processTicksAndRejections (node:internal/process/task_queues:96:5)
bug描述:
const result = frvManager.getCertifyId({
realName: event.realName,
idCard: event.idCard,
metaInfo: event.metaInfo
})
17:52:13.756 [本地调试]Error: 缺失参数[spaceId] 17:52:13.756 [本地调试] at processTicksAndRejections (node:internal/process/task_queues:96:5)
1 回复