Skip to content

Commit

Permalink
#204
Browse files Browse the repository at this point in the history
  • Loading branch information
chanjarster committed Sep 14, 2015
1 parent a6db21f commit c722496
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,9 @@ public List<WxMpUserSummary> getUserSummary(Date beginDate, Date endDate) throws
param.addProperty("end_date", SIMPLE_DATE_FORMAT.format(endDate));
String responseContent = post(url, param.toString());
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
return WxMpGsonBuilder.INSTANCE.create().fromJson(tmpJsonElement.getAsJsonObject().get("list"), new TypeToken<List<WxMpUserSummary>>() {
}.getType());
return WxMpGsonBuilder.INSTANCE.create().fromJson(tmpJsonElement.getAsJsonObject().get("list"),
new TypeToken<List<WxMpUserSummary>>() {
}.getType());
}

@Override
Expand Down Expand Up @@ -695,7 +696,7 @@ public <T, E> T execute(RequestExecutor<T, E> executor, String uri, E data) thro
throw new RuntimeException("微信服务端异常,超出重试次数");
}

protected <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
protected synchronized <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
if (uri.indexOf("access_token=") != -1) {
throw new IllegalArgumentException("uri参数中不允许有access_token: " + uri);
}
Expand Down

0 comments on commit c722496

Please sign in to comment.