diff --git a/pom.xml b/pom.xml
index ce60c6f..a8db73e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.meteor
wechat-bc
- 1.1.7-SNAPSHOT
+ 1.1.8-SNAPSHOT
diff --git a/release_info.info b/release_info.info
index f8d9424..28a051a 100644
--- a/release_info.info
+++ b/release_info.info
@@ -1,6 +1,3 @@
-VERSION=v1.1.7
-DESCRIPTION=feat: 根据username,备注,昵称来获取Contact对象
-feat: 语音消息的响应
-feat: 用户类型的区分(群,公众号,好友)
-
+VERSION=v1.1.8
+DESCRIPTION=feat: feat: 批量获取联系人详情
diff --git a/src/main/java/com/meteor/wechatbc/Main.java b/src/main/java/com/meteor/wechatbc/Main.java
index 0a20886..8323ca9 100644
--- a/src/main/java/com/meteor/wechatbc/Main.java
+++ b/src/main/java/com/meteor/wechatbc/Main.java
@@ -1,11 +1,13 @@
package com.meteor.wechatbc;
+import com.meteor.wechatbc.entitiy.contact.Contact;
import com.meteor.wechatbc.impl.WeChatClient;
import com.meteor.wechatbc.launch.Launch;
import com.meteor.wechatbc.plugin.Plugin;
import com.meteor.wechatbc.plugin.PluginClassLoader;
import com.meteor.wechatbc.scheduler.WeChatRunnable;
+import com.meteor.wechatbc.util.BaseConfig;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -28,6 +30,8 @@ public static int main0() {
weChatClient.stop();
}
}));
+
+
return new Main().start();
}
@@ -45,10 +49,14 @@ public int start(){
weChatClient.initPluginManager();
try {
+ System.out.println("getContactByNickName");
+ Contact contact = weChatClient.getContactManager().getContactByNickName("zzzsh");
+ System.out.println(contact.toString());
weChatClient.loop();
}finally {
weChatClient.stop();
}
+
return 0;
}
diff --git a/src/main/java/com/meteor/wechatbc/impl/model/MsgType.java b/src/main/java/com/meteor/wechatbc/impl/model/MsgType.java
index 1a3474b..91bcb16 100644
--- a/src/main/java/com/meteor/wechatbc/impl/model/MsgType.java
+++ b/src/main/java/com/meteor/wechatbc/impl/model/MsgType.java
@@ -33,6 +33,7 @@ public String getIdx() {
}
public static MsgType fromIdx(String idx){
+ System.out.println("msgid: "+idx);
for (MsgType value : MsgType.values()) {
if(value.getIdx().equalsIgnoreCase(idx)) return value;
}
diff --git a/src/main/java/com/meteor/wechatbc/impl/synccheck/SyncCheckRunnable.java b/src/main/java/com/meteor/wechatbc/impl/synccheck/SyncCheckRunnable.java
index ef4068c..cda641a 100644
--- a/src/main/java/com/meteor/wechatbc/impl/synccheck/SyncCheckRunnable.java
+++ b/src/main/java/com/meteor/wechatbc/impl/synccheck/SyncCheckRunnable.java
@@ -83,6 +83,8 @@ private void handlerMessage(){
for (int i = 0; i < addMsgList.size(); i++) {
JSONObject messageJson = addMsgList.getJSONObject(i);
+ System.out.println(messageJson.toString());
+
Message message = messageProcessor.processMessage(messageJson);
weChatClient.getLogger().debug(message.toString());
diff --git a/src/main/java/com/meteor/wechatbc/util/VersionCheck.java b/src/main/java/com/meteor/wechatbc/util/VersionCheck.java
index c51b63a..62de259 100644
--- a/src/main/java/com/meteor/wechatbc/util/VersionCheck.java
+++ b/src/main/java/com/meteor/wechatbc/util/VersionCheck.java
@@ -10,7 +10,7 @@
public class VersionCheck {
- private static final String CURRENT_VERSION = "v1.1.6";
+ private static final String CURRENT_VERSION = "v1.1.8";
public static void check(String owner, String repo) {