getUserInfo返回的对象中用户名为微信用户,头像为默认头像,不授权也可以调用成功回调?

小程序 文章 2021-04-05 14:22 545 0 全屏看文

AI助手支持GPT4.0

getUserInfo返回的对象中用户名为微信用户,头像为默认头像,不授权也可以调用成功回调?The user name in the object returned by getUserInfo is a WeChat user, and the avatar is the default avatar. Can I call the success callback without authorization?

getUserInfo返回的对象中用户名为微信用户,头像为默认头像,不授权也可以调用成功回调?

在开发者工具已清除所有缓存,然原本这里应该跳转到fail回调中 却进入了success回调 并且返回的用户信息不是当前的信息

The developer tool has cleared all the caches, but originally it should jump to the fail callback, but it enters the success callback, and the returned user information is not the current information

回答:

Made in.内江:

开发版本 都这样。用getUserProfile我这正常的了。你那不正常再看看?

 :

获取用户信息用新接口getUserProfile

江穆:也是一样啊  清掉授权数据后依旧是能进入成功的回调,拿到的数据也是一样的
江穆:
江穆:那要怎么判断是否已授权??或者怎么去触发授权🤣🤣这样感觉整套用户逻辑都要调整啊
LYF:

我刚刚也遇到了,是不是微信出bug了?以前都好的

 :

获取用户信息用新接口getUserProfile

江穆:对啊  就这两天 突然用户头像全白了
暖楠.:我的也是,返回得微信用户 头像也是默认头像

-EOF-

AI助手支持GPT4.0