File tree Expand file tree Collapse file tree
main/java/com/github/binarywang/wxpay/bean/result
test/java/com/github/binarywang/wxpay/bean/result Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .github .binarywang .wxpay .bean .result ;
22
3+ import java .io .Serializable ;
4+ import java .util .List ;
5+
36import com .thoughtworks .xstream .annotations .XStreamAlias ;
47import lombok .Data ;
58import lombok .EqualsAndHashCode ;
69import lombok .NoArgsConstructor ;
710
8- import java .io .Serializable ;
9- import java .util .List ;
10-
1111/**
1212 * <pre>
1313 * Created by Binary Wang on 2016-11-28.
@@ -220,7 +220,7 @@ public class WxPayRedpackQueryResult extends BaseWxPayResult {
220220 * 字段说明: 裂变红包的领取列表
221221 * </pre>
222222 */
223- @ XStreamAlias ("redpackList " )
223+ @ XStreamAlias ("hblist " )
224224 private List <RedpackInfo > redpackList ;
225225
226226 @ Data
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ public void testFromXML() {
3030 "<total_num>1</total_num>\n " +
3131 "<total_amount>100</total_amount>\n " +
3232 "<send_time><![CDATA[2018-01-23 13:45:08]]></send_time>\n " +
33- "<redpackList >\n " +
33+ "<hblist >\n " +
3434 "<hbinfo>\n " +
3535 "<openid><![CDATA[o3yHF0uHuckI3yE6lwWiFQBQdVDI]]></openid>\n " +
3636 "<amount>100</amount>\n " +
3737 "<rcv_time><![CDATA[2018-01-23 13:45:31]]></rcv_time>\n " +
3838 "</hbinfo>\n " +
39- "</redpackList >\n " +
39+ "</hblist >\n " +
4040 "</xml>" ;
4141
4242 WxPayRedpackQueryResult orderQueryResult = WxPayRedpackQueryResult .fromXML (xmlString , WxPayRedpackQueryResult .class );
You can’t perform that action at this time.
0 commit comments