| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
🤖 Augment PR Summary
概述:该 PR 目标是修复企业微信 change_external_chat 事件里 MemChangeList 从 CDATA 字符串切换为 <Item> 列表后,导致 memChangeList 解析始终为空的问题。 🤖 Was this summary useful? React with 👍 or 👎 |
Sorry, something went wrong.
|
__ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
WxCpXmlMessage.getMemChangeList() returns "" for add/remove member events because the WeChat API switched <MemChangeList> from a flat CDATA string to a nested <Item> element list, which the old XStreamCDataConverter cannot handle.
Old format (pre-4.8.0):
New format (4.8.0+):
Changes
- XStreamCDataListConverter (new) — Converter implementation that detects child elements at unmarshal time: iterates <Item> nodes and joins values with ,; falls back to direct CDATA text for the old format. Returns null (not "") when the element is absent.
- WxCpXmlMessage — switches memChangeList field annotation from XStreamCDataConverter to XStreamCDataListConverter.
- WxCpXmlMessageTest — adds testExternalChatChangeEvent covering: old flat CDATA (single/multi), new <Item> format (single/multi), and absent MemChangeList (null assertion).
Original prompt💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.