diff --git a/java_client/pom.xml b/java_client/pom.xml index 3a98e6f..8dc9d58 100644 --- a/java_client/pom.xml +++ b/java_client/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.1.0 + 3.2.2 com.example @@ -14,7 +14,8 @@ wxhk wxhk - 17 + 21 + 4.5.3 @@ -39,7 +40,7 @@ io.netty netty-all - 4.1.92.Final + 4.1.105.Final com.squareup.okhttp3 @@ -50,22 +51,22 @@ io.vertx vertx-core - 4.4.2 + ${vertx-web-client.version} io.vertx vertx-web - 4.4.2 + ${vertx-web-client.version} io.vertx vertx-web-client - 4.4.2 + ${vertx-web-client.version} io.vertx vertx-mysql-client - 4.4.2 + ${vertx-web-client.version} org.springframework.boot diff --git a/java_client/src/main/java/com/example/wxhk/util/HttpAsyncUtil.java b/java_client/src/main/java/com/example/wxhk/util/HttpAsyncUtil.java index db408bf..193f6dd 100644 --- a/java_client/src/main/java/com/example/wxhk/util/HttpAsyncUtil.java +++ b/java_client/src/main/java/com/example/wxhk/util/HttpAsyncUtil.java @@ -36,7 +36,7 @@ public class HttpAsyncUtil { } public static Future> exec(Type type, JsonObject object, Handler>> handler) { - return client.post(InitWeChat.wxPort, "localhost", "/api/?type=" + type.getType()) + return client.post(InitWeChat.wxPort, "localhost", "/api/" + type.getType()) .sendJsonObject(object) .onComplete(handler) ; @@ -45,22 +45,31 @@ public class HttpAsyncUtil { } public enum Type { - 检查微信登陆("0"), - 获取登录信息("1"), - 发送文本("2"), - 发送at文本("3"), + 检查微信登陆("checkLogin"), + 获取登录信息("userInfo"), + 发送文本("sendTextMsg"), + 转发消息("forwardMsg"), + 发送at文本("sendAtText"), 发送图片("5"), - 发送文件("6"), - 开启hook("9"), - 关闭hook("10"), + 发送文件("sendFileMsg"), + 开启hook("hookSyncMsg"), + 关闭hook("unhookSyncMsg"), 添加好友("20"), 通过好友申请("23"), - 获取群成员("25"), - 获取群成员昵称("26"), - 删除群成员("27"), + 获取群成员("getMemberFromChatRoom"), + 获取群成员基础信息("getContactProfile"), + 获取群详情("getChatRoomDetailInfo"), + 添加群成员("addMemberToChatRoom"), + 修改群昵称("modifyNickname"), + 删除群成员("delMemberFromChatRoom"), + 置顶群消息("topMsg"), + 取消置顶群消息("removeTopMsg"), + 邀请入群("InviteMemberToChatRoom"), 确认收款("45"), - 联系人列表("46"), + 联系人列表("getContactList"), 查询微信信息("55"), + 下载附件("downloadAttach"), + 解码("decodeImage"), ; diff --git a/java_client/src/main/resources/application.properties b/java_client/src/main/resources/application.properties index 199c37a..194f2f7 100644 --- a/java_client/src/main/resources/application.properties +++ b/java_client/src/main/resources/application.properties @@ -1,4 +1,4 @@ -wx.path=D:\\Program Files (x86)\\Tencent\\WeChat\\[3.9.2.23]\\WeChat.exe +wx.path=D:\\Program Files (x86)\\Tencent\\WeChat\\WeChat.exe wx.port=19088 spring.profiles.active=local vertx.port=8080 \ No newline at end of file diff --git a/java_client/src/main/resources/exec/c.exe b/java_client/src/main/resources/exec/c.exe index 68787d2..617f596 100644 Binary files a/java_client/src/main/resources/exec/c.exe and b/java_client/src/main/resources/exec/c.exe differ diff --git a/java_client/src/main/resources/exec/wxhelper.dll b/java_client/src/main/resources/exec/wxhelper.dll index 168a32b..c8f9251 100644 Binary files a/java_client/src/main/resources/exec/wxhelper.dll and b/java_client/src/main/resources/exec/wxhelper.dll differ