微信客户端管理
管理微信客户端的登录状态、二维码和回调配置
SKILL 名称
| SKILL 名称 | 说明 |
|---|---|
juhecli-wx-client | 个微客户端管理 - 恢复/停止实例,查询状态/版本,设置通知地址/代理/桥接 |
退出登录
退出当前微信账号的登录。
语法
bash
juhe-cli wx client logout '{}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| (无) | - | - | 该命令无需参数 |
示例
bash
# 退出登录
juhe-cli wx client logout '{}'获取当前二维码
获取当前微信账号的登录二维码。
语法
bash
juhe-cli wx client get_qr '{}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| (无) | - | - | 该命令无需参数 |
示例
bash
# 获取二维码
juhe-cli wx client get_qr '{}'设置回调 URL
为指定的微信客户端设置消息回调 URL,用于接收实时消息通知。
语法
bash
juhe-cli wx client set_notify_url '{"guid": "xxx", "notify_url": "https://..."}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 微信客户端的唯一标识 |
| notify_url | string | 是 | 接收消息回调的 URL 地址 |
示例
bash
# 设置回调 URL
juhe-cli wx client set_notify_url '{"guid": "abc123", "notify_url": "https://your-server.com/webhook"}'
# 设置本地开发回调
juhe-cli wx client set_notify_url '{"guid": "abc123", "notify_url": "https://ngrok.io/webhook"}'