微信小程序授权有的人授权获取不到openid,关注公众号才能获取openid。

小程序 文章 2020-09-03 10:01 1045 0 全屏看文

AI助手支持GPT4.0

微信小程序授权有的人授权获取不到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.

回答:

丶晓晓晓包:

你确保你拿到code了,并给了服务端了,剩下的就是服务端的事情了

🎾 🎾 🎾 🎾 🎾:我记录的日志里面每次都有code
丶晓晓晓包:那和你有什么关系呢,这是服务端的事情了吧。还有你要确保的是你把获取到的code成功给服务端了,而不是你获取到了,要看接口有没带过去
🎾 🎾 🎾 🎾 🎾:哥我就是服务端
微喵网络:

请检查获取的程序方法

🎾 🎾 🎾 🎾 🎾:我放上面你看看
🎾 🎾 🎾 🎾 🎾:

就是微信小程序第一次授权有的人会有授权获取不到openid

的情况

-EOF-

AI助手支持GPT4.0