税务部门的一个公众号,已按照流程申请了人脸核身API权限。
前端正常唤起人脸识别组件,显示验证通过,后端调用人脸识别结果API【https://api.weixin.qq.com/cityservice/face/identify/getinfo】也正常返回了数据。
但接下来获取图片接口【https://api.weixin.qq.com/cityservice/face/identify/getimage】报错:{"errcode":48001,"errmsg":"api unauthorized hint: [KFY.eA0975d236][2020-05-30 11:39:35]"}
-------------------------------------模拟获取人像串的post请求-------------------:
curl --connect-timeout 3 -i -X POST -d 'verify_result=真实的verify_result' https://api.weixin.qq.com/cityservice/face/identify/getimage?access_token=真实的token
-----------------------------返回-----------------------------------
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json; encoding=utf-8
Date: Sat, 30 May 2020 06:56:46 GMT
Content-Length: 89
{"errcode":48001,"errmsg":"api unauthorized hint: [vwftcA0806d236][2020-05-30 14:56:46]"}
你好,该接口需要另外申请权限的