Skip to content

Commit c722496

Browse files
committed
1 parent a6db21f commit c722496

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpServiceImpl.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,9 @@ public List<WxMpUserSummary> getUserSummary(Date beginDate, Date endDate) throws
634634
param.addProperty("end_date", SIMPLE_DATE_FORMAT.format(endDate));
635635
String responseContent = post(url, param.toString());
636636
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
637-
return WxMpGsonBuilder.INSTANCE.create().fromJson(tmpJsonElement.getAsJsonObject().get("list"), new TypeToken<List<WxMpUserSummary>>() {
638-
}.getType());
637+
return WxMpGsonBuilder.INSTANCE.create().fromJson(tmpJsonElement.getAsJsonObject().get("list"),
638+
new TypeToken<List<WxMpUserSummary>>() {
639+
}.getType());
639640
}
640641

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

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

0 commit comments

Comments
 (0)