这个是什么问题,手机问题还是我写的有问题
我的授权逻辑 前端获取code 发给后台查询openid 返给前台他在给我传过来注册。
微信小程序授权有的人授权获取不到openid,关注公众号才能获取openid。Some people authorized by the WeChat applet cannot obtain openid after being authorized to obtain openid by following the official account.
微信小程序授权有的人授权获取不到openid,关注公众号才能获取openid。这个是什么问题,手机问题还是我写的有问题
我的授权逻辑 前端获取code 发给后台查询openid 返给前台他在给我传过来注册。
What's the problem? Is there a problem with my mobile phone or with my writing? My authorization logic front-end obtains the code and sends it to the background for query. Openid returns it to the front desk. He is sending it to me for registration.
回答:
请检查获取的程序方法
就是微信小程序第一次授权有的人会有授权获取不到openid
的情况
你确保你拿到code了,并给了服务端了,剩下的就是服务端的事情了