Skip to content

Commit 8947066

Browse files
committed
WxMpUserList里total类型改为long #176
1 parent bc0fbf7 commit 8947066

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
*/
1313
public class WxMpUserList {
1414

15-
protected int total = -1;
15+
protected long total = -1;
1616
protected int count = -1;
1717
protected List<String> openids = new ArrayList<>();
1818
protected String nextOpenid;
19-
public int getTotal() {
19+
public long getTotal() {
2020
return this.total;
2121
}
22-
public void setTotal(int total) {
22+
public void setTotal(long total) {
2323
this.total = total;
2424
}
2525
public int getCount() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class WxUserListGsonAdapter implements JsonDeserializer<WxMpUserList> {
2020
public WxMpUserList deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
2121
JsonObject o = json.getAsJsonObject();
2222
WxMpUserList wxMpUserList = new WxMpUserList();
23-
wxMpUserList.setTotal(GsonHelper.getInteger(o, "total"));
23+
wxMpUserList.setTotal(GsonHelper.getLong(o, "total"));
2424
wxMpUserList.setCount(GsonHelper.getInteger(o, "count"));
2525
wxMpUserList.setNextOpenid(GsonHelper.getString(o, "next_openid"));
2626
if (o.get("data") != null && !o.get("data").isJsonNull() && !o.get("data").getAsJsonObject().get("openid").isJsonNull()) {

0 commit comments

Comments
 (0)