Skip to content

修复: 售后拒绝接口添加 rejectCertificates 拒绝凭证参数支持#4022

Merged
binarywang merged 3 commits into
developfrom
copilot/fix-missing-reject-certificates-parameter
Jun 5, 2026
Merged

修复: 售后拒绝接口添加 rejectCertificates 拒绝凭证参数支持#4022
binarywang merged 3 commits into
developfrom
copilot/fix-missing-reject-certificates-parameter

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 27, 2026

WxChannelAfterSaleService.reject() 缺少 reject_certificates 参数,导致无法按官方文档传递拒绝凭证图片,而同模块的 rejectExchangeReship() 已支持此参数。

变更内容

  • AfterSaleRejectParam:新增 rejectCertificates 字段(JSON: reject_certificates)及对应构造器
  • WxChannelAfterSaleService:新增重载方法
    WxChannelBaseResponse reject(String afterSaleOrderId, String rejectReason,
        Integer rejectReasonType, List<String> rejectCertificates) throws WxErrorException;
  • WxChannelAfterSaleServiceImpl:实现新重载方法;原三参数方法委托至新方法(传 null),保持向后兼容
  • WxChannelAfterSaleServiceImplTest:新增 testRejectWithCertificates() 测试用例

Copilot AI changed the title [WIP] Fix missing rejectCertificates parameter in after-sale rejection 修复: 售后拒绝接口添加 rejectCertificates 拒绝凭证参数支持 May 27, 2026
Copilot AI requested a review from binarywang May 27, 2026 12:58
@binarywang binarywang marked this pull request as ready for review May 27, 2026 13:09
Copilot AI review requested due to automatic review settings May 27, 2026 13:09
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 为视频号小店售后能力补齐“拒绝售后”接口缺失的 reject_certificates(拒绝凭证图片 media_id 列表)参数支持,使 WxChannelAfterSaleService.reject() 与同模块的换货拒绝接口参数能力保持一致,并提供对应测试用例入口。

Changes:

  • AfterSaleRejectParam 中新增 rejectCertificates 字段(映射 reject_certificates)及新增构造器以支持序列化该参数
  • WxChannelAfterSaleService 增加带 rejectCertificatesreject 重载,并在 WxChannelAfterSaleServiceImpl 中实现;旧三参方法委托新方法以保持兼容
  • WxChannelAfterSaleServiceImplTest 增加 testRejectWithCertificates() 用例覆盖新重载调用路径

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/after/AfterSaleRejectParam.java 增加 reject_certificates 字段与构造器,支持拒绝凭证参数序列化
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelAfterSaleService.java 新增 reject(..., List<String> rejectCertificates) 重载接口定义
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelAfterSaleServiceImpl.java 实现新重载并让旧方法委托,保持向后兼容
weixin-java-channel/src/test/java/me/chanjar/weixin/channel/api/impl/WxChannelAfterSaleServiceImplTest.java 新增拒绝带凭证的测试入口用例

Repository owner deleted a comment from chatgpt-codex-connector Bot Jun 5, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@binarywang binarywang added this to the 4.8.4 milestone Jun 5, 2026
@binarywang binarywang merged commit 126750b into develop Jun 5, 2026
1 check was pending
@binarywang binarywang deleted the copilot/fix-missing-reject-certificates-parameter branch June 5, 2026 10:29
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.

[Bug] 售后拒绝接口缺少拒绝凭证参数

3 participants