Skip to content

fix(open): 补充小程序域名结果中的 UDP/TCP 字段 - #4145

Open
aaapig wants to merge 1 commit into
binarywang:developfrom
aaapig:fix/open-ma-domain-result-udp-tcp
Open

aaapig wants to merge 1 commit into
binarywang:developfrom
aaapig:fix/open-ma-domain-result-udp-tcp

Conversation

@aaapig

@aaapig aaapig commented Nov 4, 2026

Copy link
Copy Markdown

变更说明

微信开放平台的小程序服务器域名接口会返回以下 UDP/TCP 相关字段:

  • udpdomain
  • tcpdomain
  • invalid_udpdomain
  • invalid_tcpdomain

现有 WxOpenMaDomainResult 未定义这些字段,导致调用
WxOpenMaService#getDomain 等相关方法时无法获取对应数据。

本次变更:

  • 为 WxOpenMaDomainResult 补充上述四个字段及 Gson 映射
  • 新增反序列化单元测试
  • 将新增测试加入 TestNG 测试套件

兼容性

仅新增返回字段及对应 getter/setter,不改变现有字段和行为,保持 Java 8 兼容。

验证

执行:

mvn -pl weixin-java-open -am -Dmaven.test.skip=false test

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T10:11:05.210357Z a15a0c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the UDP/TCP domain result model additions.

No open issues 🎉

What changed in this PR

本次变更补全开放平台小程序域名结果模型,使调用方能够获取接口返回的 UDP/TCP 合法及不合法域名列表,不改变现有字段和行为。

变更内容:

  • 新增四个 UDP/TCP 域名字段及对应的 Gson 映射。
  • 新增反序列化测试,验证四个字段的解析结果,并注册到 TestNG 测试套件。
File Description
weixin-java-open/​src/​test/​resources/​testng.xml 将新增测试类加入测试套件。
weixin-java-open/​src/​test/​java/​me/​chanjar/​weixin/​open/​bean/​result/​WxOpenMaDomainResultTest.java 验证四个 UDP/TCP 域名字段的反序列化结果。
weixin-java-open/​src/​main/​java/​me/​chanjar/​weixin/​open/​bean/​result/​WxOpenMaDomainResult.java 补充 UDP/TCP 合法及不合法域名字段和 JSON 映射。

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants