登录授权无法换起弹框,陷入死循环
发布于 4 年前 作者 haofang 8255 次浏览 来自 官方Issues

https://developers.weixin.qq.com/miniprogram/dev/component/button.html

open-type="getUserInfobindgetuserinfo="getUserInfo"

授权登录陷入死循环,无法唤起权限弹框

3 回复

怎么注册

请开发者使用 getUserProfile 进行登录获取用户信息

周知:getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。

小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801

拿用户头像用 getUserProfile

拿openId,用 wx.login 获得的 code 去服务器换取



回到顶部