@@ -144,7 +144,7 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData) throws WxPa
144
144
} catch (WxPayException e ) {
145
145
throw e ;
146
146
} catch (Exception e ) {
147
- throw new WxPayException ("发生异常," + e . getMessage () , e );
147
+ throw new WxPayException ("发生异常!" , e );
148
148
}
149
149
}
150
150
@@ -508,7 +508,7 @@ private WxPayBillResult handleBill(String billType, String responseContent) {
508
508
return WxPayBillResult .fromRawBillResultString (responseContent , billType );
509
509
}
510
510
511
- private String handleGzipBill (String url , String requestStr ) {
511
+ private String handleGzipBill (String url , String requestStr ) throws WxPayException {
512
512
try {
513
513
byte [] responseBytes = this .postForBytes (url , requestStr , false );
514
514
Path tempDirectory = Files .createTempDirectory ("bill" );
@@ -522,13 +522,12 @@ private String handleGzipBill(String url, String requestStr) {
522
522
throw WxPayException .from (BaseWxPayResult .fromXML (new String (responseBytes , StandardCharsets .UTF_8 ),
523
523
WxPayCommonResult .class ));
524
524
} else {
525
- throw new WxPayException ("解压zip文件出错," + e . getMessage () , e );
525
+ throw new WxPayException ("解压zip文件出错!" , e );
526
526
}
527
527
}
528
528
} catch (Exception e ) {
529
- throw new WxPayException ("解析对账单文件时出错," + e . getMessage () , e );
529
+ throw new WxPayException ("解析对账单文件时出错!" , e );
530
530
}
531
- return null ;
532
531
}
533
532
534
533
@ Override
@@ -582,7 +581,7 @@ private String handleGzipFundFlow(String url, String requestStr) throws WxPayExc
582
581
} catch (WxPayException wxPayException ) {
583
582
throw wxPayException ;
584
583
} catch (Exception e ) {
585
- throw new WxPayException ("解压zip文件出错" ,e );
584
+ throw new WxPayException ("解压zip文件出错" , e );
586
585
}
587
586
}
588
587
0 commit comments