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

企业红包支付结果EntPayRedpackResult 两个属性对照有错误 #2121

Closed
gmshiot opened this issue May 19, 2021 · 0 comments
Closed
Milestone

Comments

@gmshiot
Copy link

gmshiot commented May 19, 2021

简要描述

EntPayRedpackResult 两个属性写错,造成取不到值

模块版本情况

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

详细描述

EntPayRedpackResult 两个属性写错,造成取不到值
/**

  • 付款金额
  • 付款金额,单位分
    */
    @XStreamAlias("totalAmount")
    private String totalAmount;

/**

  • 微信单号
  • 红包订单的微信单号
    */
    @XStreamAlias("sendListid")
    private String sendListId;

totalAmount = readXmlString(d, "totalAmount");
sendListId = readXmlString(d, "sendListid");

返回的数据是<total_amount></total_amount>\n<send_listid></send_listid>
需要把属性解析改为total_amount和send_listid

/**

  • 付款金额
  • 付款金额,单位分
    */
    @XStreamAlias("total_amount")
    private String totalAmount;

/**

  • 微信单号
  • 红包订单的微信单号
    */
    @XStreamAlias("send_listid")
    private String sendListId;

totalAmount = readXmlString(d, "total_amount");
sendListId = readXmlString(d, "send_listid");
由于本人没有安装git,麻烦贡献者各位了!

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

No branches or pull requests

2 participants