获取微信小程序码,提示token 41001 错误
获取微信小程序码,提示 41001 access_token missing hint: [iKhMHa02474529]; 查了下资料说是token失效,但是刚获取就失效?大神们有遇到的吗?怎么解决?????
3 回复
现在不报41001错误了,
执行
wx.request({
url: ‘https://api.weixin.qq.com/wxa/getwxacode?access_token=’ + that.data.token+’’,
data: {
path: ‘/page/index/index/’,
},
method: “POST”,
header: {
‘content-type’: ‘application/json’
},
success: function (res) {
}
})
调用成功后返回的是一串乱码 ,我怎么给它显示成图片呀