fixed #53
This commit is contained in:
@@ -665,7 +665,7 @@ public class PayApi extends MchApi {
|
||||
billType = BillType.ALL;
|
||||
}
|
||||
String formatBillDate = DateUtil.fortmat2yyyyMMdd(billDate);
|
||||
String fileName = String.format("%s_%s_%s.txt", formatBillDate, billType.name().toLowerCase(),
|
||||
String fileName = String.format("weixin4j_bill_%s_%s_%s.txt", formatBillDate, billType.name().toLowerCase(),
|
||||
weixinAccount.getId());
|
||||
File file = new File(String.format("%s/%s", billPath, fileName));
|
||||
if (file.exists()) {
|
||||
@@ -681,9 +681,9 @@ public class PayApi extends MchApi {
|
||||
BufferedReader reader = null;
|
||||
BufferedWriter writer = null;
|
||||
try {
|
||||
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), Consts.GBK));
|
||||
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), Consts.UTF_8));
|
||||
reader = new BufferedReader(
|
||||
new InputStreamReader(response.getBody(), com.foxinmy.weixin4j.model.Consts.GBK));
|
||||
new InputStreamReader(response.getBody(), Consts.UTF_8));
|
||||
String line = null;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
writer.write(line);
|
||||
|
||||
@@ -744,7 +744,7 @@ public class WeixinPayProxy {
|
||||
/**
|
||||
* 发放红包
|
||||
*
|
||||
* @see {@link com.foxinmy.weixin4j.payment.WeixinPayProxy#sendRedpack(InputStream, Redpacket)}
|
||||
* @see {@link #sendRedpack(InputStream, Redpacket)}
|
||||
*/
|
||||
public RedpacketSendResult sendRedpack(Redpacket redpacket) throws WeixinException, IOException {
|
||||
return cashApi.sendRedpack(new FileInputStream(settings.getCertificateFile0()), redpacket);
|
||||
@@ -775,7 +775,7 @@ public class WeixinPayProxy {
|
||||
/**
|
||||
* 查询红包
|
||||
*
|
||||
* @see {@link com.foxinmy.weixin4j.payment.WeixinPayProxy#queryRedpack(InputStream,String)}
|
||||
* @see {@link #queryRedpack(InputStream,String)}
|
||||
*/
|
||||
public RedpacketRecord queryRedpack(String outTradeNo) throws WeixinException, IOException {
|
||||
return cashApi.queryRedpack(new FileInputStream(settings.getCertificateFile0()), outTradeNo);
|
||||
@@ -804,7 +804,7 @@ public class WeixinPayProxy {
|
||||
/**
|
||||
* 企业付款
|
||||
*
|
||||
* @see {@link com.foxinmy.weixin4j.payment.WeixinPayProxy#senCorpPayment(InputStream, CorpPayment)}
|
||||
* @see {@link #senCorpPayment(InputStream, CorpPayment)}
|
||||
*/
|
||||
public CorpPaymentResult sendCorpPayment(CorpPayment payment) throws WeixinException, IOException {
|
||||
return cashApi.sendCorpPayment(new FileInputStream(settings.getCertificateFile0()), payment);
|
||||
@@ -832,7 +832,7 @@ public class WeixinPayProxy {
|
||||
/**
|
||||
* 企业付款查询
|
||||
*
|
||||
* @see {@link com.foxinmy.weixin4j.payment.WeixinPayProxy#CorpPaymentRecord(InputStream, String)}
|
||||
* @see {@link #CorpPaymentRecord(InputStream, String)}
|
||||
*/
|
||||
public CorpPaymentRecord queryCorpPayment(String outTradeNo) throws WeixinException, IOException {
|
||||
return cashApi.queryCorpPayment(new FileInputStream(settings.getCertificateFile0()), outTradeNo);
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class ListsuffixResultDeserializer {
|
||||
}
|
||||
|
||||
/**
|
||||
* 对包含$n节点的xml序列化
|
||||
* 对包含$n节点的xml反序列化
|
||||
*
|
||||
* @param content
|
||||
* xml内容
|
||||
|
||||
Reference in New Issue
Block a user