获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
所以这个问题是怎么解决的呢?
微信小程序wx.scanCode 扫码返回数据有误?[图片] 部分用户扫码后,success回调返回的数据是:{"charSet":"utf-8","result":"https://u.wechat.com/MPS4h4iE3B01tZdd-QgMeh4","codeVersion":5,"errMsg":"scanCode:ok","rawData":"aHR0cHM6Ly91LndlY2hhdC5jb20vTVBTNGg0aUUzQjAxdFpkZC1RZ01laDQ=","scanType":"QR_CODE"} result变成了微信官网地址,原始数据base64解码出来的也是微信官网地址 但实际上二维码的内容是这样的:{errMsg: "scanCode:ok", result: "VZ7DNL7LCFuHZrwhEPIIn160UpRbJuCG361w/eHSZ1I=", scanType: "QR_CODE", charSet: "ISO8859-1", rawData: "Vlo3RE5MN0xDRnVIWnJ3aEVQSUluMTYwVXBSYkp1Q0czNjF3L2VIU1oxST0="}
2022-07-01