Przeglądaj źródła

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

release
Stormeye Wu 7 lat temu
rodzic
commit
56b5693a51
1 zmienionych plików z 7 dodań i 1 usunięć
  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 Wyświetl plik

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


while (true) { 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()); logger.info(mpUserList.toString());
getBatchUserInfos(wxService, mpUserList, authorizerInfo); getBatchUserInfos(wxService, mpUserList, authorizerInfo);
nextOpenId = mpUserList.getNextOpenid(); nextOpenId = mpUserList.getNextOpenid();


Ładowanie…
Anuluj
Zapisz