Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信支付的对账下载有bug #1275

Closed
itboyyjp opened this issue Nov 11, 2019 · 2 comments
Closed

微信支付的对账下载有bug #1275

itboyyjp opened this issue Nov 11, 2019 · 2 comments

Comments

@itboyyjp
Copy link

简要描述

微信支付对账下载,报数组下标越界异常

模块版本情况

  • 模块名: weixin-java-pay
  • 版本号: 3.5.0

详细描述

如果微信对账下载接口 返回的结算类型是"普通结算对账单"的格式,但是代码里按“开通免充值券后的结算对账单”的类型去解析字符串,多了“订单金额”,“申请退款金额”,“费率备注”,导致异常

@binarywang
Copy link
Owner

建议楼主先使用com.github.binarywang.wxpay.service.WxPayService#downloadRawBill(com.github.binarywang.wxpay.bean.request.WxPayDownloadBillRequest) 这个方法,读取原始对账单内容,然后自行处理。至于支持更多格式,需要更多样例来调试,也非常欢迎楼主提供兼容性更强的代码并PR。

@binarywang binarywang changed the title 微信支付的对账下载 微信支付的对账下载有bug Dec 26, 2019
@binarywang
Copy link
Owner

3.6.4.B 版本已修复,欢迎使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants