Explorar el Código

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

release
Stormeye Wu hace 7 años
padre
commit
56b5693a51
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar