File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,13 @@ public static WxPayBillResult fromRawBillResultString(String responseContent) {
120
120
* 参考以上格式进行取值
121
121
*/
122
122
String [] totalTempStr = objStr .replaceAll ("," , " " ).split ("`" );
123
- billResult .setTotalRecord (totalTempStr [1 ]);
124
- billResult .setTotalFee (totalTempStr [2 ]);
125
- billResult .setTotalRefundFee (totalTempStr [3 ]);
126
- billResult .setTotalCouponFee (totalTempStr [4 ]);
127
- billResult .setTotalPoundageFee (totalTempStr [5 ]);
128
- billResult .setTotalAmount (totalTempStr [6 ]);
129
- billResult .setTotalAppliedRefundFee (totalTempStr [7 ]);
123
+ billResult .setTotalRecord (totalTempStr [1 ]. trim () );
124
+ billResult .setTotalFee (totalTempStr [2 ]. trim () );
125
+ billResult .setTotalRefundFee (totalTempStr [3 ]. trim () );
126
+ billResult .setTotalCouponFee (totalTempStr [4 ]. trim () );
127
+ billResult .setTotalPoundageFee (totalTempStr [5 ]. trim () );
128
+ billResult .setTotalAmount (totalTempStr [6 ]. trim () );
129
+ billResult .setTotalAppliedRefundFee (totalTempStr [7 ]. trim () );
130
130
131
131
return billResult ;
132
132
}
You can’t perform that action at this time.
0 commit comments