Skip to content

Commit

Permalink
修复获取群列表为空问题,增加根据群ID获取群成员列表方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yaphone committed Jun 13, 2017
1 parent e48e8b4 commit 7a525ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class MyTest {
public static void main(String[] args) {
String qrPath = "D://itchat4j//login"; // 保存登陆二维码图片的路径
String qrPath = "D://itchat4j//login"; // 保存登陆二维码图片的路径,这里需要在本地新建目录
IMsgHandlerFace msgHandler = new SimpleDemo(); // 实现IMsgHandlerFace接口的类
Wechat wechat = new Wechat(msgHandler, qrPath); // 【注入】
wechat.start(); // 启动服务,会在qrPath下生成一张二维码图片,扫描即可登陆,注意,二维码图片如果超过一定时间未扫描会过期,过期时会自动更新,所以你可能需要重新打开图片
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public String textMsgHandle(JSONObject msg) {
LOG.info(WechatTools.getMemberListByGroupId(WechatTools.getGroupIdList().get(0)));
LOG.info("*********************");
}
return null;
// return text;
return text;
}
return null;
}
Expand Down

0 comments on commit 7a525ee

Please sign in to comment.