小程序登录第三方平台调用code2session接口报48001错误?
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.警示后人☹
