第三方平台代开发小程序 - 微信登录,返回api unauthorized?
第三方平台代开发小程序 - 微信登录
1.获取code
https://open.weixin.qq.com/connect/oauth2/authorize?
appid=xxxxx
&redirect_uri=xxxxx
&response_type=code
&scope=snsapi_userinfo
&state=xxxxx&connect_redirect=1
2.微信登录
https://api.weixin.qq.com/sns/component/jscode2session?
js_code=0330cQIY0G86sY16FsGY0KHVIY00cQIa
&grantnt_type=authorization_code
&appid=小程序ID
&comxponeet_appid=xxx
&component_access_token=xxxx
得到
errcode: 48001
errmsg: "api unauthorized, hints: [ req_id: sELBZ8yFe-xxxx ]"
能否告知出现该错误的原因?以及【第三方代开发小程序-微信登录】的示例?