收藏
回答

第三方平台代开发小程序 - 微信登录,返回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


得到

errcode48001
errmsg"api unauthorized, hints: [ req_id: sELBZ8yFe-xxxx ]"


能否告知出现该错误的原因?以及【第三方代开发小程序-微信登录】的示例?

回答关注问题邀请回答
收藏

1 个回答

  • 灵芝
    灵芝
    2020-04-24

    你好,请提供相关appid、完整请求、具体返回信息、具体操作时间

    2020-04-24
    有用
    回复 3
    • BadTudou
      BadTudou
      2020-04-24
      2020-04-24
      回复
    • BadTudou
      BadTudou
      2020-04-24
      其他信息:
      小程序服务商-第三方平台 AppId: wx168641976a2baf16
      小程序服务商-第三方平台-绑定的小程序 AppId:wx5c42a32e4f127af5
      商户授权绑定的小程序AppId: wx8c4012c8476bdb86
      2020-04-24
      回复
    • 灵芝
      灵芝
      2020-04-24回复BadTudou
      核实是component_access_token 有问题
      appid=wx8c4012c8476bdb86&component_appid=wx5c42a32e4f127af5
      2020-04-24
      回复
登录 后发表内容
问题标签