Closed EdwardZZZ closed 5 years ago
wx.login({ success({ code }) { const url = `https://api.weixin.qq.com/sns/jscode2session?appid=${appid}&secret=${secret}&js_code=${code}&grant_type=1`; wx.request({ url, success({data}) { console.log(data); } }) } })