微信小程序获取openid等参数报错errcode:48001 errmsg:'api unauthorized'

个人报这个错的时候,把url改为下面这个就能够了,html "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$appsecret&js_code=$code&grant_type=authorization_code"api 这个url有三种session 一、$url = "https://api.weixin.
相关文章
相关标签/搜索