Skip to content

获取用户列表的同时,返回用户信息 #12

Description

@wangjia2016

userList()方法,目前只是返回了一些openid的信息,这样如果后台有需要展示这些用户信息的话,得

`WxMpUserList list = wxMpService.userList(null);

    List<String> openIdList = list.getOpenIds();

    List<WxMpUser> listUser = new ArrayList<WxMpUser>();
    WxMpUser user ;
    if(openIdList!=null&&openIdList.size()>0){
        for(String openId:openIdList){  
            user = wxMpService.userInfo(openId, "zh_CN");
            listUser.add(user);
        }
    }`

这样了,略微麻烦,希望新增一个接口,直接返回用户列表(带用户信息)并支持分页获取。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions