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

微信企业转账到零钱请求对象EntPayRequest toString方法执行错误 #1161

Closed
waterorblue opened this issue Aug 16, 2019 · 3 comments

Comments

@waterorblue
Copy link

微信企业转账到零钱请求对象EntPayRequest toString方法执行错误,错误日志信息如下:

SLF4J: Failed toString() invocation on an object of type [com.github.binarywang.wxpay.bean.entpay.EntPayRequest]
Reported exception:
java.lang.IllegalArgumentException: class com.github.binarywang.wxpay.bean.entpay.EntPayRequest declares multiple JSON fields named mchId
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:170)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
at com.google.gson.Gson.getAdapter(Gson.java:423)
at com.google.gson.Gson.toJson(Gson.java:661)
at com.google.gson.Gson.toJson(Gson.java:648)
at com.google.gson.Gson.toJson(Gson.java:603)
at com.google.gson.Gson.toJson(Gson.java:583)
at com.github.binarywang.wxpay.bean.entpay.EntPayRequest.toString(EntPayRequest.java:194)

@waterorblue
Copy link
Author

com.github.binarywang weixin-java-pay 3.5.0

版本3.4.0和3.3.0都有此问题

@binarywang
Copy link
Owner

确实是个问题,由于微信官方字段命名不统一导致的,准备修复一下

@binarywang
Copy link
Owner

3.5.1.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