Bläddra i källkod

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

release
Stormeye Wu 7 år sedan
förälder
incheckning
56b5693a51
1 ändrade filer med 7 tillägg och 1 borttagningar
  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 Visa fil

@@ -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();


Laddar…
Avbryt
Spara