获取手机号接口真机调试会显示解密失败,是Bug还是流程有问题?
< i-button bind:getphonenumber = "handleClickLogin" shape = "circle" size = "default" i-class = "kjdl-btn" open-type = "getPhoneNumber" > 一键授权登录 </ i-button > |
这是wxml
getPhoneNumber: function (res,e) { app.wxRequest( 'POST' , app.globalData.URL + '/api/wx/getPhoneNumber' , { encryptedData: e.detail.encryptedData, iv: e.detail.iv, openid: res }, success => { } } |
拿到相关信息后就给后端,显示解密失败
pc上和已发布的小程序测试ok,但是真机测试ios下一直失败 ,安卓没问题