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

WxCpUser Gender gender 为null的情况 会报错! #1580

Closed
smalltalkhyb opened this issue May 25, 2020 · 2 comments
Closed

WxCpUser Gender gender 为null的情况 会报错! #1580

smalltalkhyb opened this issue May 25, 2020 · 2 comments

Comments

@smalltalkhyb
Copy link

WxCpUser Gender 是
MALE("男", "1"),
FEMALE("女", "2");

但是企业微信返回的是 "gender":"0" 返回null

@binarywang
Copy link
Member

确实是有问题,估计之前是没有0的值,后来新加上的

@binarywang
Copy link
Member

https://work.weixin.qq.com/api/doc/10982 从这个页面就可以看出,之前的值:性别。1表示男性,2表示女性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants