| @@ -69,15 +69,17 @@ public class WxMemController { | |||||
| List<String> openIds = mpUserList.getOpenids(); | List<String> openIds = mpUserList.getOpenids(); | ||||
| if(openIds.size() > 100) { | if(openIds.size() > 100) { | ||||
| int index = 0; | int index = 0; | ||||
| int index_end = 0; | |||||
| int index_end = index + 100; | |||||
| while(true) { | while(true) { | ||||
| index_end = index + 100; | |||||
| if(openIds.size()-1 > index_end) { | if(openIds.size()-1 > index_end) { | ||||
| getBatchUserInfo(wxService, openIds.subList(index, index_end), authorizerInfo); | getBatchUserInfo(wxService, openIds.subList(index, index_end), authorizerInfo); | ||||
| } else { | |||||
| } else if(openIds.size()-1 > index) { | |||||
| getBatchUserInfo(wxService, openIds.subList(index, openIds.size()-1), authorizerInfo); | getBatchUserInfo(wxService, openIds.subList(index, openIds.size()-1), authorizerInfo); | ||||
| } else { | |||||
| break; | |||||
| } | } | ||||
| index += 100; | index += 100; | ||||
| index_end = index + 100; | |||||
| } | } | ||||
| } else { | } else { | ||||
| getBatchUserInfo(wxService, openIds, authorizerInfo); | getBatchUserInfo(wxService, openIds, authorizerInfo); | ||||