Open
Conversation
…mFeeFen、cpsFeeFen Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add fee-related fields to order query response
微信小程序虚拟支付订单查询响应新增结算及手续费字段
Mar 9, 2026
🤖 Augment PR SummarySummary: 本 PR 为微信小程序虚拟支付“订单查询”响应补齐微信文档新增的结算状态与手续费相关字段。 🤖 Was this summary useful? React with 👍 or 👎 |
| @SerializedName("wxpay_order_id") | ||
| private String wxpayOrderId; //微信支付交易单号,为用户微信支付详情页面上的交易单号 | ||
| @SerializedName("sett_time") | ||
| private Integer settTime; //结算时间的秒级时间戳,大于0表示结算成功 |
| @SerializedName("sett_state") | ||
| private Integer settState; //结算状态 0-未开始结算 1-结算中 2-结算成功 3-待结算(与0相同) | ||
| @SerializedName("platform_fee_fen") | ||
| private Integer platformFeeFen; //虚拟支付技术服务费,单位为分;sett_state = 2时返回 |
There was a problem hiding this comment.
platformFeeFen/cpsFeeFen 作为“分”金额字段目前是 Integer,在大额或未来扩展场景下可能溢出且与 orderFee 等金额字段的 Long 不一致;可以考虑统一为 Long 以避免解析风险。
Severity: low
Other Locations
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java:75
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
There was a problem hiding this comment.
Pull request overview
本 PR 针对微信小程序虚拟支付「订单查询」接口的响应模型补齐微信文档新增的结算状态与手续费相关字段,确保 WxMaXPayQueryOrderResponse.OrderInfo 能完整承载最新返回数据。
Changes:
- 在
OrderInfo中新增渠道单号/微信支付交易单号字段(channelOrderId、wxpayOrderId) - 新增结算时间与结算状态字段(
settTime、settState) - 新增平台技术服务费与 CPS 服务费字段(
platformFeeFen、cpsFeeFen)
...ava-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java
Outdated
Show resolved
Hide resolved
...ava-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java
Outdated
Show resolved
Hide resolved
…n/xpay/WxMaXPayQueryOrderResponse.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…n/xpay/WxMaXPayQueryOrderResponse.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
WxMaXPayQueryOrderResponse.OrderInfo缺少微信文档中定义的结算状态与手续费相关字段。新增字段(
OrderInfo)channelOrderIdchannel_order_idStringwxpayOrderIdwxpay_order_idStringsettTimesett_timeIntegersettStatesett_stateIntegerplatformFeeFenplatform_fee_fenIntegersettState=2时返回cpsFeeFencps_fee_fenIntegersettState=2时返回参考:微信虚拟支付文档 - query-order
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.