Skip to content

Commit f48a6f9

Browse files
committed
Merge commit '3853c7ee4050e67b9211c385147444100aa69ee5' into develop
* commit '3853c7ee4050e67b9211c385147444100aa69ee5': upgrade to 1.1.9-SNAPSHOT upgrade to version 1.1.8 个人信息缺少remark和groupId
2 parents 7bb414f + 3853c7e commit f48a6f9

File tree

7 files changed

+25
-6
lines changed

7 files changed

+25
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ weixin-java-tools
1717
<dependency>
1818
<groupId>me.chanjar</groupId>
1919
<artifactId>weixin-java-mp</artifactId>
20-
<version>1.1.8</version>
20+
<version>1.1.9</version>
2121
</dependency>
2222
```
2323

@@ -27,7 +27,7 @@ weixin-java-tools
2727
<dependency>
2828
<groupId>me.chanjar</groupId>
2929
<artifactId>weixin-java-cp</artifactId>
30-
<version>1.1.8</version>
30+
<version>1.1.9</version>
3131
</dependency>
3232
```
3333

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>me.chanjar</groupId>
77
<artifactId>weixin-java-parent</artifactId>
8-
<version>1.1.8-SNAPSHOT</version>
8+
<version>1.1.9-SNAPSHOT</version>
99
<packaging>pom</packaging>
1010
<name>WeiXin Java Tools - Parent</name>
1111
<description>微信公众号、企业号上级POM</description>

weixin-java-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>me.chanjar</groupId>
88
<artifactId>weixin-java-parent</artifactId>
9-
<version>1.1.8-SNAPSHOT</version>
9+
<version>1.1.9-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>weixin-java-common</artifactId>

weixin-java-cp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>me.chanjar</groupId>
88
<artifactId>weixin-java-parent</artifactId>
9-
<version>1.1.8-SNAPSHOT</version>
9+
<version>1.1.9-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>weixin-java-cp</artifactId>

weixin-java-mp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>me.chanjar</groupId>
88
<artifactId>weixin-java-parent</artifactId>
9-
<version>1.1.8-SNAPSHOT</version>
9+
<version>1.1.9-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>weixin-java-mp</artifactId>
1212
<name>WeiXin Java Tools - MP</name>

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public class WxMpUser implements Serializable {
2323
protected Long subscribeTime;
2424
protected String unionId;
2525
protected Integer sexId;
26+
protected String remark;
27+
protected Integer groupId;
2628

2729
public Boolean getSubscribe() {
2830
return subscribe;
@@ -103,6 +105,19 @@ public void setSexId(Integer sexId) {
103105
this.sexId = sexId;
104106
}
105107

108+
public String getRemark() {
109+
return remark;
110+
}
111+
public void setRemark(String remark) {
112+
this.remark = remark;
113+
}
114+
public Integer getGroupId() {
115+
return groupId;
116+
}
117+
public void setGroupId(Integer groupId) {
118+
this.groupId = groupId;
119+
}
120+
106121
public static WxMpUser fromJson(String json) {
107122
return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpUser.class);
108123
}
@@ -121,6 +136,8 @@ public String toString() {
121136
", headImgUrl='" + headImgUrl + '\'' +
122137
", subscribeTime=" + subscribeTime +
123138
", unionId='" + unionId + '\'' +
139+
", remark='" + remark + '\'' +
140+
", groupId='" + groupId + '\'' +
124141
'}';
125142
}
126143
}

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserGsonAdapter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
3030
wxMpUser.setSubscribeTime(GsonHelper.getLong(o, "subscribe_time"));
3131
wxMpUser.setUnionId(GsonHelper.getString(o, "unionid"));
3232
Integer sexId = GsonHelper.getInteger(o, "sex");
33+
wxMpUser.setRemark(GsonHelper.getString(o, "remark"));
34+
wxMpUser.setGroupId(GsonHelper.getInteger(o, "groupid"));
3335
wxMpUser.setSexId(sexId);
3436
if(new Integer(1).equals(sexId)) {
3537
wxMpUser.setSex("男");

0 commit comments

Comments
 (0)