# xhelper **Repository Path**: coderzhouyu/xhelper ## Basic Information - **Project Name**: xhelper - **Description**: wx hook - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-10 - **Last Updated**: 2023-12-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## xposed 模块 ### 1. 介绍 主要通过 eventbus 传递消息,实现模块之间的通信,实现模块化开发。 wxhook 模块主要是 hook 微信的消息,实现微信的自动回复,自动抢红包等功能。 listener 模块主要是监听微信的消息,通过 eventbus 传递消息给 websocket 模块,实现微信的自动回复等功能。 还有服务端的主动发送消息给微信的功能。都在这个模块实现。 ### 2. 使用 #### 2.1. 编译 ```bash ./gradlew build ``` #### 2.2. 安装 ```bash adb push app/build/outputs/apk/debug/app-debug.apk /sdcard/ adb shell pm install -t -r /sdcard/app-debug.apk ``` 或者手动安装 app/build/outputs/apk/debug/app-debug.apk ## server 模块 ### 1. 介绍 server 是通过 websocket 与手机端的 listener 模块通信,实现服务端主动发送消息给微信的功能。 通过 wokerman 实现快速开发。 主要逻辑在 service/GatewayWorker/Applications/xhelper/Events.php 中实现。 配置文件在 service/GatewayWorker/Applications/xhelper/start_gateway.php中。 对外部系统的接口在 service/xhelper 中,依赖与 GateWayClient