File tree Expand file tree Collapse file tree 6 files changed +15
-7
lines changed
src/main/java/com/meteor/wechatbc Expand file tree Collapse file tree 6 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.meteor</groupId >
88 <artifactId >wechat-bc</artifactId >
9- <version >1.1.7 -SNAPSHOT</version >
9+ <version >1.1.8 -SNAPSHOT</version >
1010
1111 <distributionManagement >
1212 <repository >
Original file line number Diff line number Diff line change 1- VERSION=v1.1.7
2- DESCRIPTION=feat: 根据username,备注,昵称来获取Contact对象
3- feat: 语音消息的响应
4- feat: 用户类型的区分(群,公众号,好友)
5-
1+ VERSION=v1.1.8
2+ DESCRIPTION=feat: feat: 批量获取联系人详情
63
Original file line number Diff line number Diff line change 11package com .meteor .wechatbc ;
22
33
4+ import com .meteor .wechatbc .entitiy .contact .Contact ;
45import com .meteor .wechatbc .impl .WeChatClient ;
56import com .meteor .wechatbc .launch .Launch ;
67import com .meteor .wechatbc .plugin .Plugin ;
78import com .meteor .wechatbc .plugin .PluginClassLoader ;
89import com .meteor .wechatbc .scheduler .WeChatRunnable ;
10+ import com .meteor .wechatbc .util .BaseConfig ;
911import org .apache .logging .log4j .LogManager ;
1012import org .apache .logging .log4j .Logger ;
1113
@@ -28,6 +30,8 @@ public static int main0() {
2830 weChatClient .stop ();
2931 }
3032 }));
33+
34+
3135 return new Main ().start ();
3236 }
3337
@@ -45,10 +49,14 @@ public int start(){
4549 weChatClient .initPluginManager ();
4650
4751 try {
52+ System .out .println ("getContactByNickName" );
53+ Contact contact = weChatClient .getContactManager ().getContactByNickName ("zzzsh" );
54+ System .out .println (contact .toString ());
4855 weChatClient .loop ();
4956 }finally {
5057 weChatClient .stop ();
5158 }
59+
5260 return 0 ;
5361 }
5462
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public String getIdx() {
3333 }
3434
3535 public static MsgType fromIdx (String idx ){
36+ System .out .println ("msgid: " +idx );
3637 for (MsgType value : MsgType .values ()) {
3738 if (value .getIdx ().equalsIgnoreCase (idx )) return value ;
3839 }
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ private void handlerMessage(){
8383 for (int i = 0 ; i < addMsgList .size (); i ++) {
8484 JSONObject messageJson = addMsgList .getJSONObject (i );
8585
86+ System .out .println (messageJson .toString ());
87+
8688 Message message = messageProcessor .processMessage (messageJson );
8789
8890 weChatClient .getLogger ().debug (message .toString ());
Original file line number Diff line number Diff line change 1010
1111public class VersionCheck {
1212
13- private static final String CURRENT_VERSION = "v1.1.6 " ;
13+ private static final String CURRENT_VERSION = "v1.1.8 " ;
1414
1515 public static void check (String owner , String repo ) {
1616
You can’t perform that action at this time.
0 commit comments