Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uni.getUserInfo接口官方示例无法拿到用户信息 #62

Closed
carzyYY opened this issue Oct 9, 2018 · 2 comments
Closed

uni.getUserInfo接口官方示例无法拿到用户信息 #62

carzyYY opened this issue Oct 9, 2018 · 2 comments

Comments

@carzyYY
Copy link

carzyYY commented Oct 9, 2018

uni.login({
provider: 'weixin',
success: function (loginRes) {
console.log(loginRes.authResult);
// 获取用户信息
uni.getUserInfo({
provider: 'weixin',
success: function (infoRes) {
console.log('用户昵称为:' + infoRes.userInfo.nickname);
}
});
}
});

@hbcui1984
Copy link

JavaScript 是大小写敏感的,用户昵称是nickName,不是nickname。

@carzyYY
Copy link
Author

carzyYY commented Oct 12, 2018

JavaScript 是大小写敏感的,用户昵称是nickName,不是nickname。

嗯嗯,官网的示例有问题

@carzyYY carzyYY closed this as completed Oct 12, 2018
@carzyYY carzyYY reopened this Oct 12, 2018
@carzyYY carzyYY closed this as completed Oct 12, 2018
@carzyYY carzyYY reopened this Oct 12, 2018
@carzyYY carzyYY closed this as completed Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants