Skip to content

#2983 【公众号】增加性别sex属性 #2984

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class WxMpUser implements Serializable {

private Boolean subscribe;
private String openId;
private Integer sex;
/**
* @deprecated 2021年12月27日之后不再输出
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
if (subscribe != null) {
user.setSubscribe(!new Integer(0).equals(subscribe));
}
user.setSex(GsonHelper.getInteger(o, "sex"));
user.setHeadImgUrl(GsonHelper.getString(o, "headimgurl"));
user.setLanguage(GsonHelper.getString(o, "language"));
user.setNickname(GsonHelper.getString(o, "nickname"));
Expand Down