-
Notifications
You must be signed in to change notification settings - Fork 489
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
微信退款查询接口更改了,代码没有同步 #29
Comments
退款查询接口改了,对应的查询接口返回字段也有变更;com/riversoft/weixin/pay/payment/bean/RefundQuery.java 这个bean里面的字段跟现在微信接口返回的字段没有同步 |
这个之前就没实现完整,里面有个todo,主要因为n是不固定的,要实现的话要像个好办法。 |
I got the answer from http://stackoverflow.com/questions/17685508/jackson-de-serialiazation-with-unknow-dynamic-property. I will have a try soon. |
太复杂了,还两层结构: |
真想吐槽下腾讯的技术水平。 |
我擦,这个接口的返回字段怎么这么恶心?字段名是动态的,。微信这么干是不是同一个订单如果有多次退款之后把这一个退款订单的结果集都返回来?如果这样返回一个数组不就行了? |
fixed, 你试试看。 |
at ae300c5 |
微信返回回来的xml协议里面加了应该还要在实体bean上面加上@JacksonXmlCData注解
|
|
@yyhSuper 有微信发过来的例子吗?我这边参考文档cash_fee 是int型。 |
我跑了一下RefundQueryTest 测试用例里面的testXml2Bean方法是没有问题,现在代码里面序列化的对象是RefundQuery,但是你把序列化对象换成RefundQueryWrapper就会报错。 |
|
和CDATA无关,触发了一个Jackson的bug:FasterXML/jackson-databind#349 |
估计要等Jackson的2.8.6 或者2.9.0 release出来才能搞定,不然的话代码会比较丑陋。 |
Jackson 2.8.6 貌似没有完全修复这个问题:https://github.com/borball/jackson-test |
@yyhSuper ,测试一下试试。 |
@borball 最近年底有点忙~ |
@borball 测试可以了 |
微信接口
weixin-sdk
The text was updated successfully, but these errors were encountered: