验证核身结果的接口是下面这个/cityservice/face/identify/getinfo,可以仔细看下文档https://developers.weixin.qq.com/community/business/doc/000442d352c1202bd498ecb105c00d
人脸合身前端校验成功,后端验证时返回错误:name or id_card_number empty?APPID:wx2365bd3927cb4d23 服务端验证时的错误信息: {"errcode":84006,"errmsg":"name or id_card_number empty hint: [_02W0a09883230][2023-10-20 15:46:28] rid: 65323054-6ddb04d2-0bdbf0ab"}" 小程序端代码 //小程序端人脸核身 let res = await wepy.wx.startFacialRecognitionVerify({ name:_this.name, idCardNumber:_this.card, }) if(res.errCode !== 0){ Dialog.alert({ title: '错误', message: res.errmsg, }).then(() => { // on close }) return } //后端人脸核身 let resp = await request('authorizations/facial', { method: 'post', data: { 'name':_this.name, 'card':_this.card, 'verify_result':res.verifyResult } }) console.log(resp) 服务端代码(PHP easywecht 6 版本) public function facial(Request $request){ $validator = Validator::make($request->all(), [ 'name' => 'required|string', 'card' => 'required|string', 'verify_result' => 'required|string', ]); if ($validator->fails()) { return $this->errorBadRequest('参数错误'); } $app = new Application(config('wechat.mini_program')); $api = $app->getClient(); $response = $api->postJson('/cityservice/face/identify/getuseridkey', [ "verify_result" => $request->verify_result, ]); dd($response->getContent()); }
2023-10-20请求格式不对,请求数据是json类型,示例如下: { "verify_result":"xxxxxxxxx" }
微信人脸识别校验verify_result,返回84001错误?请问一下大神,https://api.weixin.qq.com/cityservice/face/identify/getinfo报这个错,{"errcode":84001,"errmsg":"invalid identify id hint: [oSJtQa02183229][2022-10-12 13:23:38] rid: 63464f5a-313dad45-120d35f1"},检测access_token没啥问题,可能是什么原因呢
2022-10-12用户由于网络等原因上传视频失败,所以拉不到,建议用户重试
获取人脸核身视频报错 84004 video upload fail,请问是什么原因?-appid:oYEEG5hQ9EyUcLq1pEUtmQOmjEb0 -人脸核身接口返回值verify_result:XXIzTtMqCxwOaawoE91-VOUta761shLM-FobxGLhprjB6bGNFy5ijk1bdzILDJ5Tbl2TyLdm5QVgJ3W8Pk5dcX0vAmtmkG9aMUaGEtOeAJPvz80nOxK15Ew6hNoh8ijS -用户微信:L-xuefei2 -时间:2022-05-05 18:17:08 -错误原因:{"errcode":84004,"errmsg":"video upload fail! hint: [70IwsA0833ld64][2022-05-06 15:07:13] rid: 6274c921-160e478c-235bc49d"} -调用的接口:https://api.weixin.qq.com/cityservice/face/identify/getvideo
2022-05-06错误信息很明显,非法id,请确认identify id的正确性,另外请确认刷脸和调用api的appid一致
/cityservice/face/identify/getinfo接口报84001错误怎么解决?https://api.weixin.qq.com/cityservice/face/identify/getinfo调用一直报{ "errcode": 84001, "errmsg": "invalid identify id hint: [rio3ta09448574][2022-03-18 17:49:04] rid: 62345590-486adf52-4bcb8f73" } 错误(传值没问题)
2022-03-18