1.添加获取用户信息单元测试类

2.修改批量获取用户提交方式bug
This commit is contained in:
aimil
2016-09-28 12:24:44 +08:00
parent a5779a7493
commit 0ee199d729
2 changed files with 25 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ public class WxMpUserServiceImpl implements WxMpUserService {
@Override
public List<WxMpUser> userInfoList(WxMpUserQuery userQuery) throws WxErrorException {
String url = API_URL_PREFIX + "/info/batchget";
String responseContent = this.wxMpService.execute(new SimpleGetRequestExecutor(), url, userQuery.toJsonString());
String responseContent = this.wxMpService.execute(new SimplePostRequestExecutor(), url, userQuery.toJsonString());
return WxMpUser.fromJsonList(responseContent);
}