/ /
let data = await this.getAccessToken()
var access_token = data.access_token
if (data.access_token) {
let data = await this.getShareQRcode({
"access_token": access_token,
"scene": "123456",
"path": "pages/success/main",
"width": 430
})
let base64 = wx.arrayBufferToBase64(data)
this.qRcodeUrl = "data:image/png;base64," + base64
}
/
//
wx.request({
url: "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + payload.access_token,
data: {
scene: payload.scene,
page: payload.page,
width: payload.width,
auto_color: payload.auto_color,
line_color: payload.line_color,
is_hyaline: payload.is_hyaline
},
method: "POST",
responseType: "arraybuffer",
success:function(res) {
if (res) {
console.log(res, "")
resolve(res.data)
}
}
})
Development environment, scan the generated QR code, but there is no response, no response at all