| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
There was a problem hiding this comment.
本 PR 为企业微信智能机器人模块添加了消息接收解析和主动发送消息的功能支持,解决了 API 模式创建的智能机器人回调消息无法被正确解析的问题。
主要变更包括:
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java | 添加 robotId 和 sessionId 字段及 XStream 注解,支持智能机器人消息解析 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/intelligentrobot/WxCpIntelligentRobotSendMessageRequest.java | 新增主动发送消息请求类,包含 robotId、userid、message、sessionId、msgId 字段 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/intelligentrobot/WxCpIntelligentRobotSendMessageResponse.java | 新增主动发送消息响应类,包含 msgId 和 sessionId 字段 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpIntelligentRobotService.java | 在服务接口中添加 sendMessage 方法定义 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpIntelligentRobotServiceImpl.java | 实现 sendMessage 方法,调用微信 API 发送消息 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java | 添加 SEND_MESSAGE API 路径常量 |
| weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessageTest.java | 添加智能机器人消息解析测试用例 |
| weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpIntelligentRobotServiceImplTest.java | 添加主动发送消息请求/响应的序列化和反序列化测试用例 |
| weixin-java-cp/INTELLIGENT_ROBOT.md | 更新文档,添加主动发送消息和接收消息的使用说明和示例代码 |
Sorry, something went wrong.
…gentrobot/WxCpIntelligentRobotSendMessageResponse.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
问题
API 模式创建的智能机器人回调消息无法被 WxCpXmlMessage 正确解析,缺少主动发送消息的 API。
变更
消息接收支持
主动发送消息 API
文档和测试
参考文档: https://developer.work.weixin.qq.com/document/path/100719
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.