我在做一个PC端的支付宝人脸身份验的功能,输入姓名,身份证,电话,传给后端,后端调支付宝接口
调支付宝的接口alipay.user.certify.open.certify
返回一个链接,然后生成二维码,用手机扫描二维码认证
认证成功后会返回一个我提前给的他一个地址,问题是这个地址他返回后没有任何的传参,这样我都没办法知道他是认证成功还是失败了?是不是?还是我的方法不对???
{ "path": "/user/realname", "name": "realname", "params": {}, "query": {}, "hash": "", "fullPath": "/user/realname", "matched": [ { "path": "/user/realname", "name": "realname", "meta": { "title": "pagesTitle.实名认证" }, "props": { "default": false }, "children": [], "instances": {}, "leaveGuards": { "Set(0)": [] }, "updateGuards": { "Set(0)": [] }, "enterCallbacks": {}, "components": { "default": { "__name": "realname", "__hmrId": "fa0a3609", "__file": "F:/chunshuProject/donghongliang/web/src/views/frontend/user/realname.vue" } } } ], "meta": { "title": "pagesTitle.实名认证" } }
3、4是什么意思???
第4步的意思你认证通过后,需要去调 alipay.user.certify.open.query 这个接口,查询用户状态去判断是否认证成功