GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 补充小程序发货信息消息推送字段 by buaazyl · Pull Request #3799 · binarywang/WxJava

Conversation

@buaazyl

@buaazyl buaazyl commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping.html

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@buaazyl
补充小程序发货信息消息推送字段
d427aa1
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping.html
@binarywang binarywang assigned Copilot Dec 8, 2025
@binarywang
binarywang requested a review from Copilot December 8, 2025 06:27
Copilot started reviewing on behalf of binarywang December 8, 2025 06:28
View session
Copilot AI reviewed Dec 8, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this 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 为微信小程序发货信息管理功能补充消息推送字段,支持订单发货和结算事件的完整信息接收。实现了微信官方文档中定义的发货信息推送协议,使开发者能够接收订单发货提醒和结算通知。

主要变更:

  • 在 WxMaMessage 类中新增 11 个发货相关字段,包括支付订单信息、商户信息、发货时间、结算时间等
  • 在 WxConsts.EventType 中新增两个事件类型常量:发货提醒事件和订单结算事件
  • 修正了部分代码格式问题,统一了常量声明的空格风格

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java 新增 11 个字段支持发货信息消息推送,包括交易订单号、商户信息、支付/发货/结算时间等字段
weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java 新增 TRADE_MANAGE_REMIND_SHIPPING 和 TRADE_MANAGE_ORDER_SETTLEMENT 两个事件类型常量,并修正部分格式问题

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
Comment on lines +260 to +314
/**
* 微信支付订单号
*/
@XStreamAlias("transaction_id")
private String transactionId;
/**
* 商户号
*/
@XStreamAlias("merchant_id")
private String merchantId;
/**
* 子商户号
*/
@XStreamAlias("sub_merchant_id")
private String subMerchantId;
/**
* 商户订单号
*/
@XStreamAlias("merchant_trade_no")
private String merchantTradeNo;
/**
* 支付成功时间,秒级时间戳
*/
@XStreamAlias("pay_time")
private Long payTime;
/**
* 消息文本内容
*/
@XStreamAlias("msg")
private String msg;
/**
* 支付成功时间,秒级时间戳
*/
@XStreamAlias("shipped_time")
private Long shippedTime;
/**
* 预计结算时间,秒级时间戳。发货时推送才有该字段
*/
@XStreamAlias("estimated_settlement_time")
private Long estimatedSettlementTime;
/**
* 确认收货方式:1. 手动确认收货;2. 自动确认收货。结算时推送才有该字段
*/
@XStreamAlias("confirm_receive_method")
private Integer confirmReceiveMethod;
/**
* 确认收货时间,秒级时间戳。结算时推送才有该字段
*/
@XStreamAlias("confirm_receive_time")
private Long confirmReceiveTime;
/**
* 订单结算时间,秒级时间戳。结算时推送才有该字段
*/
@XStreamAlias("settlement_time")
private Long settlementTime;

Copilot AI Dec 8, 2025

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

缺少对新增发货信息字段的测试覆盖。建议在 WxMaMessageTest.java 中添加针对 TRADE_MANAGE_REMIND_SHIPPING 和 TRADE_MANAGE_ORDER_SETTLEMENT 事件的测试用例,验证这些新字段(transactionId, merchantId, subMerchantId, merchantTradeNo, payTime, msg, shippedTime, estimatedSettlementTime, confirmReceiveMethod, confirmReceiveTime, settlementTime)能够正确解析。可以参考现有的 testSubscribeMsgPopupEvent() 和 testFromXmlForOpenProductOrderPayEvent() 方法的测试模式。

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
Comment thread weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

buaazyl and others added 2 commits December 8, 2025 14:36
@buaazyl
Update weixin-java-common/src/main/java/me/chanjar/weixin/common/api/…
6aa00dc
…WxConsts.java

Co-authored-by: Copilot <[email protected]>
@buaazyl
修正 shippedTime 注释
397c995
Co-authored-by: Copilot <[email protected]>
@binarywang
binarywang merged commit c777dc3 into binarywang:develop Dec 10, 2025
@binarywang binarywang added this to the 4.8.0 milestone Dec 10, 2025
Copilot AI pushed a commit that referenced this pull request Dec 21, 2025
@buaazyl
🎨 #3799 【小程序】发货信息管理功能补充消息推送字段,支持订单发货和结算事件的完整信息接收
4b20b53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

Copilot code review Copilot

Labels

None yet

Projects

None yet

Milestone

4.8.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@buaazyl @binarywang
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.