Skip to content

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

Description

@smalltalkhyb

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

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

Activity

  1. binarywang commented on May 25, 2020

    @binarywang
    Owner

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

  2. binarywang commented on May 25, 2020

    @binarywang
    Owner

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

  3. added a commit that references this issue on May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions