暂时不关闭hook信息

This commit is contained in:
王涛 2023-06-02 14:22:41 +08:00
parent a94dfa9f71
commit 1aa7182a9a
2 changed files with 6 additions and 3 deletions

View File

@ -150,9 +150,8 @@ public class InitWeChat implements CommandLineRunner {
}
});
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
HttpSyncUtil.exec(HttpAsyncUtil.Type.关闭hook, new JsonObject());
}));
// FIXME: 2023/6/2 程序结束后关闭hook会偶尔出现微信闪退情况,暂时禁用
// Runtime.getRuntime().addShutdownHook(new Thread(HttpSendUtil::关闭hook));
//netstat -aon|findstr "端口号"
// c.exe -I 4568 -p D:\exec\wxhelper.dll -m 4568
}

View File

@ -32,6 +32,10 @@ class HttpSendUtilTest {
void 开启hook() {
}
@Test
void 关闭ook() {
HttpSendUtil.关闭hook();
}
@Test
void 获取群成员() {