生成二维码问题总报41030:invalid page hint:
我试着在测试用的小程序中生成已发布过的小程序的二维码总不成功,总是报
41030:invalid page hint: [dFECjA0751b464]
如果在POST中把access_token:res.data.access_token也做一个参数就会报47001:data format error hint
这是什么问题呢
wx.request({
url: ‘https://api.weixin.qq.com/cgi-bin/token?grant\_type=client\_credential&appid=正在使用中的小程序appid&secret=正在使用中的小程序appscret’,
method: ‘GET’,
header: {
‘content-type’: ‘application/json;charset=utf-8’ // 默认值
},
success(res) {
console.log(“success:” + res.data.access_token),
wx.request({
url: ‘https://api.weixin.qq.com/wxa/getwxacodeunlimit?access\_token=’+res.data.access_token,
method: ‘POST’,
header: {
‘content-type’:‘application/json;charset=utf-8’ // 默认值
},
data:{
// access_token:res.data.access_token,//启用报47001:data format error hint
scene:‘9000’,
page:‘pages/index/index’
},
