小程序登录第三方平台调用code2session接口报48001错误?

发布于 6 年前作者 jun342171 次浏览最后编辑 6 年前来自 ask
GET https://api.weixin.qq.com/sns/component/jscode2session?appid=APPID&js_code=JSCODE&grant_type=authorization_code&component_appid=COMPONENT_APPID&component_access_token=COMPONENT_ACCESS_TOKEN

错误代码:48001,说明:api unauthorized, hints: [ req_id: BhOElfMre-TlQ ]

解决了,是平台的COMPONENT_ACCESS_TOKEN,不能用授权方的accesstoken.警示后人☹
0 回复
暂无回复