云函数在执行该行时报错: const result = await frvManager.getCertifyId(event);
[get_verify_id/ac1cc31c1725815538401177439/406ms/ERROR] Api调用失败【401】:参数非法(certNo)
完成错误如下:
请求入参: {
"args": {
"realName": "方亮",
"idCard": "234981049498443618",
"metaInfo": "{\"deviceType\":\"android\",\"appVersion\":\"1.0.0\",\"osVersion\":\"14\",\"appName\":\"com.chdashi.guest\",\"nfcSupport\":\"Y\",\"bioMetaInfo\":\"7.1.2:393216,0\",\"apdidToken\":\"zObDF2Sw9BVySVWe6OkBlXHpxLo6w+GOaImrseRV38T0/m3SkQEAAA==\",\"deviceModel\":\"23049RAD8C\",\"sdkVersion\":\"2.3.16.1\",\"securityVersion\":\"2\",\"zimVer\":\"1.0.0\",\"voiceSdkVersion\":\"1.0.0\"}",
"clientInfo": {
"PLATFORM": "app",
"OS": "android",
"APPID": "__UNI__AE202FA",
"DEVICEID": "4F3D152DB42298353814976F7C3EE124",
"channel": "",
"scene": 1001,
"appId": "__UNI__AE202FA",
"appLanguage": "zh-Hans",
"appName": "在线交友",
"appVersion": "1.0.0",
"appVersionCode": 1000,
"appWgtVersion": "1.0.0",
"browserName": "chrome",
"browserVersion": "118.0.0.0",
"deviceBrand": "xiaomi",
"deviceId": "4F3D152DB42298353814976F7C3EE124",
"deviceModel": "23049RAD8C",
"deviceType": "phone",
"osName": "android",
"osVersion": "14",
"romName": "MIUI",
"romVersion": "V816",
"ua": "Mozilla/5.0 (Linux; Android 14; 23049RAD8C Build/UKQ1.230804.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/118.0.0.0 Mobile Safari/537.36 uni-app (Immersed/34.18182)",
"uniPlatform": "app",
"uniRuntimeVersion": "4.24",
"locale": "zh-Hans",
"LOCALE": "zh-Hans"
}
},
"requestId": "ac1cc31c1725815538401177439"
}
[get_verify_id/ac1cc31c1725815538401177439/17ms/DEBUG] event {
realName: '方亮',
idCard: '234981049498443618',
metaInfo: '{"deviceType":"android","appVersion":"1.0.0","osVersion":"14","appName":"com.chdashi.guest","nfcSupport":"Y","bioMetaInfo":"7.1.2:393216,0","apdidToken":"zObDF2Sw9BVySVWe6OkBlXHpxLo6w+GOaImrseRV38T0/m3SkQEAAA==","deviceModel":"23049RAD8C","sdkVersion":"2.3.16.1","securityVersion":"2","zimVer":"1.0.0","voiceSdkVersion":"1.0.0"}'
}
[get_verify_id/ac1cc31c1725815538401177439/406ms/ERROR] Api调用失败【401】:参数非法(certNo)
Error: Api调用失败【401】:参数非法(certNo)
at M (/tmp/function/@common_modules/uni-cloud-verify/index.js:1:5505)
at _request (/tmp/function/@common_modules/uni-cloud-verify/index.js:1:6836)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at exports.main (/tmp/function/__index.js:7:18)
at $e (/tmp/function/index.js:1:85141)
at Ve (/tmp/function/index.js:1:86228)
at runUserFunction (/code/index.js:93:265116)
at (/code/index.js:93:259283)
请求响应状态: fail
1 个回复
DCloud_uniCloud_CRL
姓名和身份证一致吗?为了安全帖子中的身份证号建议删掉。