Browse Source

[会员管理][修改]:粉丝批量同步

release
Stormeye Wu 7 years ago
parent
commit
56b5693a51
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      mlWechatOpen/src/main/java/com/iformall/mp/controller/WxMemController.java

+ 7
- 1
mlWechatOpen/src/main/java/com/iformall/mp/controller/WxMemController.java View File

@@ -48,7 +48,13 @@ public class WxMemController {
String nextOpenId = null;

while (true) {
WxMpUserList mpUserList = wxService.getUserService().userList(nextOpenId);
WxMpUserList mpUserList;
try {
mpUserList = wxService.getUserService().userList(nextOpenId);
} catch (WxErrorException e) {
logger.error("获取粉丝openIds出错: " + e.getMessage());
break;
}
logger.info(mpUserList.toString());
getBatchUserInfos(wxService, mpUserList, authorizerInfo);
nextOpenId = mpUserList.getNextOpenid();


Loading…
Cancel
Save