调用网页授权获取用户信息接口,同一个公众号,只有一个openid可以获取用户信息,其它的都不行?

小程序 文章 2022-01-07 17:20 267 0 全屏看文

AI助手支持GPT4.0

调用网页授权获取用户信息接口,同一个公众号,只有一个openid可以获取用户信息,其它的都不行?Calling the webpage authorization to obtain user information interface, the same official account, only one openid can obtain user information, but the others will not work?

调用网页授权获取用户信息接口,同一个公众号,只有一个openid可以获取用户信息,其它的都不行?

回答:

Mr.Zhao:

跟openid有啥关系?用错token了吧

胡雪飞😇 😜 物业:没有用错,都是用这个接口https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code 返回的token,
胡雪飞😇 😜 物业:

错误的返回:{"errcode":48001,"errmsg":"api unauthorized, rid: 61d7fa67-131f1a8e-61e4e24a"}

正常的返回用户信息

微喵网络:

报错是什么?

-EOF-

AI助手支持GPT4.0