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

微信卡包领卡后更新错误WxMpMemberCardUpdateMessage.java 兼容留下的多个add_bonus引起报错 #1564

Closed
yeafee opened this issue May 16, 2020 · 2 comments

Comments

@yeafee
Copy link

yeafee commented May 16, 2020

简要描述

WxMpMemberCardUpdateMessage.java 多个 @SerializedName("add_bonus")引起会员卡领卡后更新报错。

模块版本情况

  • WxJava 模块名: weixin-java-mp
  • WxJava 版本号: 3.7.7.B~3.7.9.B

详细描述

多个“add_bouns”引起微信卡包领卡后更新会员卡错误。 查看代码是因为历史遗留的拼写错误,原作者考虑兼容才保留同时存在多个add_bouns。

private Integer bonus;
/**
本次积分变动值,传负数代表减少,错误单词,只是为了保持兼容
/
@deprecated
@SerializedName("add_bonus")
private Integer addBounus;
/

* 本次积分变动值,传负数代表减少
*/
@SerializedName("add_bonus")
private Integer addBonus;

日志

class me.chanjar.weixin.mp.bean.membercard.WxMpMemberCardUpdateMessage declares multiple JSON fields named add_bonus

weixin-java-mp-error

@binarywang
Copy link
Member

这还真是个问题,稍后修复

@binarywang
Copy link
Member

还没发布呢,关闭的有点早

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