如题: {"errcode":48001,"errmsg":"api unauthorized hint: [UufR5a0746vr45!]"}
node下 + axios 发送 post 请求。求大神指点!
var option = '{"path": "pages/index/index?query=1","width": 430}';
axios({
method: 'post',
headers:{'Content-Type':'application/json'},
url: `https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=${token.access_token}`,
data: option
})
.then((data) => {
console.log(data);
next(data.data);
}, (err) => {
next(err);
})

我也出现这个错误,请问怎么解决的?
找到原因是:
1 是需要上线,
2.是我吧 小程序的 token 和 公众号 的token 搞混了
你的小程序认证了吗
求写过的 指导下