Skip to content

修复:MiPayNotifyV3Result#DecryptNotifyResult 与文档不一致,补充缺失字段#3884

Open
Copilot wants to merge 2 commits intodevelopfrom
copilot/fix-mipay-notify-parameter-issue
Open

修复:MiPayNotifyV3Result#DecryptNotifyResult 与文档不一致,补充缺失字段#3884
Copilot wants to merge 2 commits intodevelopfrom
copilot/fix-mipay-notify-parameter-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

MiPayNotifyV3Result.DecryptNotifyResult 缺少官方文档中定义的多个回调解密字段,其中 mix_pay_status 为必填关键字段。

新增字段

必填字段:

  • mix_pay_status — 医保自费混合订单支付状态(MIX_PAY_SUCCESS / MIX_PAY_FAIL 等枚举)
  • mix_pay_type — 混合支付类型(CASH_ONLY / INSURANCE_ONLY / CASH_AND_INSURANCE
  • city_idmed_inst_namemed_inst_no — 城市及医疗机构信息

选填字段:

  • self_pay_status — 自费部分支付状态
  • med_ins_pay_status — 医保部分支付状态
  • paid_time — 订单支付时间
  • passthrough_response_content — 医保局透传返回内容
  • order_type — 订单类型(REG_PAY / DIAG_PAY 等)
  • openidsub_openidpay_for_relatives — 用户信息
  • serial_nopay_order_idpay_auth_no — 医保订单标识
  • geo_location — 用户定位经纬度

解密后的完整响应体示例:

{
  "mix_trade_no": "1217752501201407033233368318",
  "mix_pay_status": "MIX_PAY_SUCCESS",
  "self_pay_status": "SELF_PAY_SUCCESS",
  "med_ins_pay_status": "MED_INS_PAY_SUCCESS",
  "mix_pay_type": "CASH_AND_INSURANCE",
  "order_type": "REG_PAY",
  "paid_time": "2018-06-08T10:34:56+08:00",
  "city_id": "530100",
  "med_inst_name": "北大医院",
  ...
}
Original prompt

This section details on the original issue you should resolve

<issue_title>医保混合收款成功通知结果-参数不一致</issue_title>
<issue_description>原始issue来自:https://gitee.com/binary/weixin-java-tools/issues/IDSTTG

MiPayNotifyV3Result#DecryptNotifyResult 和最新文档不一致,没有关键参数 mix_pay_status

</issue_description>

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

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- 添加 mix_pay_status(医保自费混合订单支付状态,必填)
- 添加 self_pay_status(自费部分支付状态,选填)
- 添加 med_ins_pay_status(医保部分支付状态,选填)
- 添加 paid_time(订单支付时间,选填)
- 添加 passthrough_response_content(医保局返回内容,选填)
- 添加 mix_pay_type(混合支付类型,必填)
- 添加 order_type(订单类型,选填)
- 添加 openid、sub_openid(用户标识,选填)
- 添加 pay_for_relatives(是否代亲属支付,选填)
- 添加 serial_no、pay_order_id、pay_auth_no(订单相关,选填)
- 添加 geo_location、city_id(地理位置,必填)
- 添加 med_inst_name、med_inst_no(医疗机构信息,必填)

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix parameter inconsistency in MiPayNotifyV3Result 修复:MiPayNotifyV3Result#DecryptNotifyResult 与文档不一致,补充缺失字段 Feb 25, 2026
Copilot AI requested a review from binarywang February 25, 2026 03:25
@binarywang binarywang marked this pull request as ready for review February 25, 2026 03:25
Copilot AI review requested due to automatic review settings February 25, 2026 03:25
@augmentcode
Copy link

augmentcode bot commented Feb 25, 2026

🤖 Augment PR Summary

总结:本 PR 修复了 MiPayNotifyV3Result.DecryptNotifyResult 与微信支付「医保混合收款成功通知」官方文档字段不一致的问题,补齐回调解密结果中缺失的关键字段(尤其是必填的 mix_pay_status)。

主要变更:

  • DecryptNotifyResult 中新增医保/自费混合支付相关字段:mix_pay_statusmix_pay_type
  • 补充自费/医保分项支付状态字段:self_pay_statusmed_ins_pay_status
  • 补充订单时间与透传信息:paid_timepassthrough_response_content
  • 补充订单类型与用户信息:order_typeopenidsub_openidpay_for_relatives
  • 补充医保侧订单标识与定位:serial_nopay_order_idpay_auth_nogeo_location
  • 补充城市及医疗机构信息:city_idmed_inst_namemed_inst_no

技术说明:新增字段均通过 Gson 的 @SerializedName 映射到文档中的 JSON 字段名,保持对现有反序列化逻辑的兼容;新增字段为可空类型(如 String/Boolean),上层业务如需强校验可根据“必填/选填”字段自行判断。

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

Copy link

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 修复了 MiPayNotifyV3Result.DecryptNotifyResult 类与微信支付医保混合收款成功通知官方文档不一致的问题,补充了缺失的关键字段和可选字段。

Changes:

  • 新增必填字段 mix_pay_status(医保自费混合订单支付状态)、mix_pay_type(混合支付类型)、city_id(城市ID)、med_inst_name(医疗机构名称)、med_inst_no(医疗机构编码)
  • 新增可选字段包括 self_pay_statusmed_ins_pay_statuspaid_timepassthrough_response_contentorder_typeopenidsub_openidpay_for_relativesserial_nopay_order_idpay_auth_nogeo_location
  • 所有字段均遵循项目现有的文档格式和命名规范,使用 Lombok 注解和 Gson 序列化注解

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.

医保混合收款成功通知结果-参数不一致

3 participants