Skip to content

Commit 748a81b

Browse files
committed
修改toString方法
1 parent 58d10b7 commit 748a81b

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

‎weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/WxRedpackResult.java‎

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import java.io.Serializable;
44

5+
import org.apache.commons.lang3.builder.ToStringBuilder;
6+
import org.apache.commons.lang3.builder.ToStringStyle;
7+
58
import com.thoughtworks.xstream.annotations.XStreamAlias;
69

710
/**
@@ -13,9 +16,6 @@
1316
@XStreamAlias("xml")
1417
public class WxRedpackResult implements Serializable {
1518

16-
/**
17-
*
18-
*/
1919
private static final long serialVersionUID = -4837415036337132073L;
2020

2121
@XStreamAlias("return_code")
@@ -100,19 +100,6 @@ public String getSendListid() {
100100

101101
@Override
102102
public String toString() {
103-
return "WxRedpackResult{" +
104-
"returnCode=" + this.returnCode +
105-
", returnMsg=" + this.returnMsg +
106-
", sign=" + this.sign +
107-
", errCode=" + this.errCode +
108-
", errCodeDes=" + this.errCodeDes +
109-
", mchBillno=" + this.mchBillno +
110-
", mchId=" + this.mchId +
111-
", wxappid=" + this.wxappid +
112-
", reOpenid=" + this.reOpenid +
113-
", totalAmount=" + this.totalAmount +
114-
", sendTime=" + this.sendTime +
115-
", sendListid=" + this.sendListid +
116-
'}';
103+
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
117104
}
118105
}

0 commit comments

Comments
 (0)