Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorOSS committed Mar 8, 2024
1 parent b91c0ee commit d47cba2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.meteor</groupId>
<artifactId>wechat-bc</artifactId>
<version>1.1.7-SNAPSHOT</version>
<version>1.1.8-SNAPSHOT</version>

<distributionManagement>
<repository>
Expand Down
7 changes: 2 additions & 5 deletions release_info.info
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
VERSION=v1.1.7
DESCRIPTION=feat: 根据username,备注,昵称来获取Contact对象
feat: 语音消息的响应
feat: 用户类型的区分(群,公众号,好友)

VERSION=v1.1.8
DESCRIPTION=feat: feat: 批量获取联系人详情

8 changes: 8 additions & 0 deletions src/main/java/com/meteor/wechatbc/Main.java
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -28,6 +30,8 @@ public static int main0() {
weChatClient.stop();
}
}));


return new Main().start();
}

Expand All @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/meteor/wechatbc/impl/model/MsgType.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/meteor/wechatbc/util/VersionCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit d47cba2

Please sign in to comment.