Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

修复:微信委托代扣协议字段名 contract_termination_mode 拼写错误#3813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge2 commits intodevelop
base:develop
Choose a base branch
Loading
fromcopilot/fix-contract-terminated-mode

Conversation

Copy link
Contributor

CopilotAI commentedDec 19, 2025
edited
Loading

WxSignQueryResult 中"协议解约方式"字段名与微信官方文档不一致。文档规定字段名为contract_termination_mode,代码中误写为contract_terminated_mode

修改内容

  • XStream 注解@XStreamAlias("contract_terminated_mode")@XStreamAlias("contract_termination_mode")
  • XML 解析readXmlInteger(d, "contract_terminate_mode")readXmlInteger(d, "contract_termination_mode")

修复前后对比:

// 修复前@XStreamAlias("contract_terminated_mode")privateIntegercontractTerminatedMode;protectedvoidloadXml(Documentd) {contractTerminatedMode =readXmlInteger(d,"contract_terminate_mode");}// 修复后@XStreamAlias("contract_termination_mode")privateIntegercontractTerminatedMode;protectedvoidloadXml(Documentd) {contractTerminatedMode =readXmlInteger(d,"contract_termination_mode");}

参考文档:

Original prompt

This section details on the original issue you should resolve

<issue_title>微信委托代扣协议结果 contract_terminated_mode 字段名错误</issue_title>
<issue_description>### 简要描述
com.github.binarywang.wxpay.bean.result.WxSignQueryResult 中 "协议解约方式" 字段的字段名, 并非contract_terminated_mode , 而是contract_termination_mode .

代码参见:

/**
* 协议解约方式
* 非必传
*/
@XStreamAlias("contract_terminated_mode")
privateIntegercontractTerminatedMode;

微信支付文档参见:
签约、解约结果通知查询签约关系

Image

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号: 4.7.9.B

</issue_description>

Comments on the Issue (you are@copilot in this section)

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


💬 We'd love your input! Share your thoughts on Copilot coding agent in our2 minute survey.

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] Fix contract terminated mode field name in WxSignQueryResult修复:微信委托代扣协议字段名 contract_termination_mode 拼写错误Dec 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@binarywangbinarywangAwaiting requested review from binarywang

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

微信委托代扣协议结果 contract_terminated_mode 字段名错误

2 participants

@binarywang

[8]ページ先頭

©2009-2025 Movatter.jp