https://developers.weixin.qq.com/miniprogram/dev/component/button.html
open-type="getUserInfo" bindgetuserinfo="getUserInfo"
授权登录陷入死循环,无法唤起权限弹框
登录授权无法换起弹框,陷入死循环Login authorization cannot be changed to the pop-up box, falling into an infinite loop
登录授权无法换起弹框,陷入死循环框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | button open-type="getUserInfo" | 工具 | 所有 | 2.15.0 |
https://developers.weixin.qq.com/miniprogram/dev/component/button.html
open-type="getUserInfo" bindgetuserinfo="getUserInfo"
授权登录陷入死循环,无法唤起权限弹框
Framework type problem type API / component name terminal type wechat version basic library version applet bug button open type = "getUserInfo" tool all 2.15.0 https://developers.weixin.qq.com/miniprogram/dev/component/button.html Open type = "getUserInfo" bindetuserinfo = "getUserInfo" authorization login falls into a dead cycle, unable to call up the permission pop-up code fragment < button type = primary "open type = getUserInfo" bindetuserinfo = getUserInfo > authorized wechat user information < / button >
回答:
怎么注册
周知:getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。
小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801
拿用户头像用 getUserProfile
拿openId,用 wx.login 获得的 code 去服务器换取
原文出处:登录授权无法换起弹框,陷入死循环
请开发者使用 getUserProfile 进行登录获取用户信息