Ver a proveniência

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

release
Stormeye Wu há 7 anos
ascendente
cometimento
56b5693a51
1 ficheiros alterados com 7 adições e 1 eliminações
  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 ficheiro

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


Carregando…
Cancelar
Guardar