Skip to content

fix:修正合作伙伴订阅通知解密后消息体数据结构#3998

Merged
binarywang merged 2 commits into
binarywang:developfrom
buaazyl:develop
May 13, 2026
Merged

fix:修正合作伙伴订阅通知解密后消息体数据结构#3998
binarywang merged 2 commits into
binarywang:developfrom
buaazyl:develop

Conversation

@buaazyl
Copy link
Copy Markdown
Contributor

@buaazyl buaazyl commented May 12, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 修正微信支付「合作伙伴订阅通知」解密后消息体的 Java 映射结构,使其与实际解密 JSON 中的 message_contenttopic_name 层级保持一致,便于正确反序列化与读取数据。

Changes:

  • 将解密结果字段从扁平结构调整为 message_content / topic_name 两个嵌套对象结构。
  • 新增 MessageContentTopicName 两个内部数据类承载原业务字段与主题信息。
Comments suppressed due to low confidence (1)

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/PartnerSubscribeNotifyResult.java:84

  • TopicName 内的 topicEnglishName/topicChineseName 没有字段注释,且字段名本身不直接体现“主题英文名/中文名”的业务含义。建议补充简短 JavaDoc(与 MessageContent 中字段注释保持一致),方便 IDE 提示与后续维护。
    public static class TopicName implements Serializable {
      private static final long serialVersionUID = 1L;
      @SerializedName("topic_english_name")
      private String topicEnglishName;
      @SerializedName("topic_chinese_name")
      private String topicChineseName;

@binarywang binarywang merged commit 79307f7 into binarywang:develop May 13, 2026
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.

3 participants