mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-18 14:16:25 +08:00
#404 微信支付对账单下载接口增加对非ALL类型的支持
This commit is contained in:
@@ -505,11 +505,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
||||
}
|
||||
|
||||
private WxPayDownloadBillRequest buildDownloadBillRequest(String billDate, String billType, String tarType,
|
||||
String deviceInfo) throws WxPayException {
|
||||
if (!BillType.ALL.equals(billType)) {
|
||||
throw new WxPayException("目前仅支持ALL类型的对账单下载");
|
||||
}
|
||||
|
||||
String deviceInfo) {
|
||||
WxPayDownloadBillRequest request = new WxPayDownloadBillRequest();
|
||||
request.setBillType(billType);
|
||||
request.setBillDate(billDate);
|
||||
@@ -548,11 +544,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
||||
}
|
||||
|
||||
private WxPayBillResult handleBill(String billType, String responseContent) {
|
||||
if (!BillType.ALL.equals(billType)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return WxPayBillResult.fromRawBillResultString(responseContent);
|
||||
return WxPayBillResult.fromRawBillResultString(responseContent, billType);
|
||||
}
|
||||
|
||||
private String handleGzipBill(String url, String requestStr) {
|
||||
|
||||
Reference in New Issue
Block a user