mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 09:38:19 +08:00
issue #236
This commit is contained in:
@ -22,7 +22,7 @@ public class WxUserListGsonAdapter implements JsonDeserializer<WxMpUserList> {
|
|||||||
wxMpUserList.setTotal(GsonHelper.getInteger(o, "total"));
|
wxMpUserList.setTotal(GsonHelper.getInteger(o, "total"));
|
||||||
wxMpUserList.setCount(GsonHelper.getInteger(o, "count"));
|
wxMpUserList.setCount(GsonHelper.getInteger(o, "count"));
|
||||||
wxMpUserList.setNextOpenId(GsonHelper.getString(o, "next_openid"));
|
wxMpUserList.setNextOpenId(GsonHelper.getString(o, "next_openid"));
|
||||||
if (!o.get("data").isJsonNull() && !o.get("data").getAsJsonObject().get("openid").isJsonNull()) {
|
if (o.get("data") != null && !o.get("data").isJsonNull() && !o.get("data").getAsJsonObject().get("openid").isJsonNull()) {
|
||||||
JsonArray data = o.get("data").getAsJsonObject().get("openid").getAsJsonArray();
|
JsonArray data = o.get("data").getAsJsonObject().get("openid").getAsJsonArray();
|
||||||
for (int i = 0; i < data.size(); i++) {
|
for (int i = 0; i < data.size(); i++) {
|
||||||
wxMpUserList.getOpenIds().add(GsonHelper.getAsString(data.get(i)));
|
wxMpUserList.getOpenIds().add(GsonHelper.getAsString(data.get(i)));
|
||||||
|
|||||||
Reference in New Issue
Block a user