* commit '3853c7ee4050e67b9211c385147444100aa69ee5': upgrade to 1.1.9-SNAPSHOT upgrade to version 1.1.8 个人信息缺少remark和groupIdmaster
| @@ -17,7 +17,7 @@ weixin-java-tools | |||||
| <dependency> | <dependency> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-mp</artifactId> | <artifactId>weixin-java-mp</artifactId> | ||||
| <version>1.1.8</version> | |||||
| <version>1.1.9</version> | |||||
| </dependency> | </dependency> | ||||
| ``` | ``` | ||||
| @@ -27,7 +27,7 @@ weixin-java-tools | |||||
| <dependency> | <dependency> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-cp</artifactId> | <artifactId>weixin-java-cp</artifactId> | ||||
| <version>1.1.8</version> | |||||
| <version>1.1.9</version> | |||||
| </dependency> | </dependency> | ||||
| ``` | ``` | ||||
| @@ -5,7 +5,7 @@ | |||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-parent</artifactId> | <artifactId>weixin-java-parent</artifactId> | ||||
| <version>1.1.8-SNAPSHOT</version> | |||||
| <version>1.1.9-SNAPSHOT</version> | |||||
| <packaging>pom</packaging> | <packaging>pom</packaging> | ||||
| <name>WeiXin Java Tools - Parent</name> | <name>WeiXin Java Tools - Parent</name> | ||||
| <description>微信公众号、企业号上级POM</description> | <description>微信公众号、企业号上级POM</description> | ||||
| @@ -6,7 +6,7 @@ | |||||
| <parent> | <parent> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-parent</artifactId> | <artifactId>weixin-java-parent</artifactId> | ||||
| <version>1.1.8-SNAPSHOT</version> | |||||
| <version>1.1.9-SNAPSHOT</version> | |||||
| </parent> | </parent> | ||||
| <artifactId>weixin-java-common</artifactId> | <artifactId>weixin-java-common</artifactId> | ||||
| @@ -6,7 +6,7 @@ | |||||
| <parent> | <parent> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-parent</artifactId> | <artifactId>weixin-java-parent</artifactId> | ||||
| <version>1.1.8-SNAPSHOT</version> | |||||
| <version>1.1.9-SNAPSHOT</version> | |||||
| </parent> | </parent> | ||||
| <artifactId>weixin-java-cp</artifactId> | <artifactId>weixin-java-cp</artifactId> | ||||
| @@ -6,7 +6,7 @@ | |||||
| <parent> | <parent> | ||||
| <groupId>me.chanjar</groupId> | <groupId>me.chanjar</groupId> | ||||
| <artifactId>weixin-java-parent</artifactId> | <artifactId>weixin-java-parent</artifactId> | ||||
| <version>1.1.8-SNAPSHOT</version> | |||||
| <version>1.1.9-SNAPSHOT</version> | |||||
| </parent> | </parent> | ||||
| <artifactId>weixin-java-mp</artifactId> | <artifactId>weixin-java-mp</artifactId> | ||||
| <name>WeiXin Java Tools - MP</name> | <name>WeiXin Java Tools - MP</name> | ||||
| @@ -23,6 +23,8 @@ public class WxMpUser implements Serializable { | |||||
| protected Long subscribeTime; | protected Long subscribeTime; | ||||
| protected String unionId; | protected String unionId; | ||||
| protected Integer sexId; | protected Integer sexId; | ||||
| protected String remark; | |||||
| protected Integer groupId; | |||||
| public Boolean getSubscribe() { | public Boolean getSubscribe() { | ||||
| return subscribe; | return subscribe; | ||||
| @@ -103,6 +105,19 @@ public class WxMpUser implements Serializable { | |||||
| this.sexId = sexId; | this.sexId = sexId; | ||||
| } | } | ||||
| public String getRemark() { | |||||
| return remark; | |||||
| } | |||||
| public void setRemark(String remark) { | |||||
| this.remark = remark; | |||||
| } | |||||
| public Integer getGroupId() { | |||||
| return groupId; | |||||
| } | |||||
| public void setGroupId(Integer groupId) { | |||||
| this.groupId = groupId; | |||||
| } | |||||
| public static WxMpUser fromJson(String json) { | public static WxMpUser fromJson(String json) { | ||||
| return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpUser.class); | return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpUser.class); | ||||
| } | } | ||||
| @@ -121,6 +136,8 @@ public class WxMpUser implements Serializable { | |||||
| ", headImgUrl='" + headImgUrl + '\'' + | ", headImgUrl='" + headImgUrl + '\'' + | ||||
| ", subscribeTime=" + subscribeTime + | ", subscribeTime=" + subscribeTime + | ||||
| ", unionId='" + unionId + '\'' + | ", unionId='" + unionId + '\'' + | ||||
| ", remark='" + remark + '\'' + | |||||
| ", groupId='" + groupId + '\'' + | |||||
| '}'; | '}'; | ||||
| } | } | ||||
| } | } | ||||
| @@ -30,6 +30,8 @@ public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> { | |||||
| wxMpUser.setSubscribeTime(GsonHelper.getLong(o, "subscribe_time")); | wxMpUser.setSubscribeTime(GsonHelper.getLong(o, "subscribe_time")); | ||||
| wxMpUser.setUnionId(GsonHelper.getString(o, "unionid")); | wxMpUser.setUnionId(GsonHelper.getString(o, "unionid")); | ||||
| Integer sexId = GsonHelper.getInteger(o, "sex"); | Integer sexId = GsonHelper.getInteger(o, "sex"); | ||||
| wxMpUser.setRemark(GsonHelper.getString(o, "remark")); | |||||
| wxMpUser.setGroupId(GsonHelper.getInteger(o, "groupid")); | |||||
| wxMpUser.setSexId(sexId); | wxMpUser.setSexId(sexId); | ||||
| if(new Integer(1).equals(sexId)) { | if(new Integer(1).equals(sexId)) { | ||||
| wxMpUser.setSex("男"); | wxMpUser.setSex("男"); | ||||