43002 require POST method rid: 6527bd5a-4c58fd06-5145b0db
wx.request({
url: 'https://api.weixin.qq.com/cgi-bin/stable_token',
methods:'post',
header: {ContentType:"application/json"},
data:{
"grant_type": "client_credential",
"appid": "",
"secret": ""
},
success:(data)=>{
console.log(111,data);
},
fail:(err)=>{
console.log(222,err);
}
})
api.weixin.qq.com 该域名只能在服务端访问,禁止在小程序前端访问。 请参考 https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html
id和secret传的正常