fix:修正合作伙伴订阅通知解密后消息体数据结构#3998
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
该 PR 修正微信支付「合作伙伴订阅通知」解密后消息体的 Java 映射结构,使其与实际解密 JSON 中的 message_content、topic_name 层级保持一致,便于正确反序列化与读取数据。
Changes:
- 将解密结果字段从扁平结构调整为
message_content/topic_name两个嵌套对象结构。 - 新增
MessageContent、TopicName两个内部数据类承载原业务字段与主题信息。
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;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.