Skip to content

Commit

Permalink
2.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
egzosn committed Dec 1, 2020
1 parent 9d2b4f8 commit 9a6d262
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 72 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<dependency>
<groupId>com.egzosn</groupId>
<artifactId>{module-name}</artifactId>
<version>2.13.2</version>
<version>2.13.3</version>
</dependency>

```
Expand Down Expand Up @@ -70,5 +70,5 @@ E-Mail:[email protected]

QQ群:542193977

微信群:
![微信群](https://egzosn.gitee.io/pay-java-parent/wx.jpg "wx.jpg")
微信群:
![微信群](https://egzosn.gitee.io/pay-java-parent/wx.jpg "wx.jpg")
2 changes: 1 addition & 1 deletion pay-java-ali/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-ali</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pay-java-baidu/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-baidu</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pay-java-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,17 @@
*/
package com.egzosn.pay.common.util;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.CharArrayWriter;
import java.io.Closeable;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.net.HttpURLConnection;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.codec.Charsets;

import java.io.*;
import java.net.*;
import java.nio.channels.Selector;
import java.nio.charset.Charset;
import java.nio.charset.UnsupportedCharsetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.commons.codec.Charsets;

/**
* General IO stream manipulation utilities.
* <p>
Expand Down Expand Up @@ -80,7 +59,6 @@
* Origin of code: Excalibur.
*
* @version $Id: IOUtils.java 1326636 2012-04-16 14:54:53Z ggregory $
*
*/
public class IOUtils {
// NOTE: This class is focussed on InputStream, OutputStream, Reader and
Expand Down Expand Up @@ -283,8 +261,7 @@ public static void closeQuietly(Closeable closeable) {
if (closeable != null) {
closeable.close();
}
}
catch (IOException ioe) {
} catch (IOException ioe) {
// ignore
}
}
Expand Down Expand Up @@ -316,8 +293,7 @@ public static void closeQuietly(Socket sock) {
if (sock != null) {
try {
sock.close();
}
catch (IOException ioe) {
} catch (IOException ioe) {
// ignored
}
}
Expand Down Expand Up @@ -350,8 +326,7 @@ public static void closeQuietly(Selector selector) {
if (selector != null) {
try {
selector.close();
}
catch (IOException ioe) {
} catch (IOException ioe) {
// ignored
}
}
Expand Down Expand Up @@ -384,8 +359,7 @@ public static void closeQuietly(ServerSocket sock) {
if (sock != null) {
try {
sock.close();
}
catch (IOException ioe) {
} catch (IOException ioe) {
// ignored
}
}
Expand All @@ -409,7 +383,6 @@ public static void closeQuietly(ServerSocket sock) {
*
* @param input Stream to be fully buffered.
* @return A fully buffered stream.
* @throws IOException if an I/O error occurs
* @since 2.0
*/
public static InputStream toBufferedInputStream(InputStream input) {
Expand Down Expand Up @@ -612,8 +585,7 @@ public static byte[] toByteArray(URL url) throws IOException {
URLConnection conn = url.openConnection();
try {
return IOUtils.toByteArray(conn);
}
finally {
} finally {
close(conn);
}
}
Expand All @@ -631,8 +603,7 @@ public static byte[] toByteArray(URLConnection urlConn) throws IOException {
InputStream inputStream = urlConn.getInputStream();
try {
return IOUtils.toByteArray(inputStream);
}
finally {
} finally {
inputStream.close();
}
}
Expand Down Expand Up @@ -864,8 +835,7 @@ public static String toString(URL url, Charset encoding) throws IOException {
InputStream inputStream = url.openStream();
try {
return toString(inputStream, encoding);
}
finally {
} finally {
inputStream.close();
}
}
Expand Down Expand Up @@ -2252,7 +2222,7 @@ public static void skipFully(Reader input, long toSkip) throws IOException {
* @param input where to read input from
* @param buffer destination
* @param offset inital offset into buffer
* @param length length to read, must be >= 0
* @param length length to read, must
* @return actual length read; may be less than requested if EOF was reached
* @throws IOException if a read error occurs
* @since 2.2
Expand Down Expand Up @@ -2298,7 +2268,7 @@ public static int read(Reader input, char[] buffer) throws IOException {
* @param input where to read input from
* @param buffer destination
* @param offset inital offset into buffer
* @param length length to read, must be >= 0
* @param length length to read,
* @return actual length read; may be less than requested if EOF was reached
* @throws IOException if a read error occurs
* @since 2.2
Expand Down Expand Up @@ -2344,7 +2314,7 @@ public static int read(InputStream input, byte[] buffer) throws IOException {
* @param input where to read input from
* @param buffer destination
* @param offset inital offset into buffer
* @param length length to read, must be >= 0
* @param length length to read, must
* @throws IOException if there is a problem reading the file
* @throws IllegalArgumentException if length is negative
* @throws EOFException if the number of characters read was incorrect
Expand Down Expand Up @@ -2383,7 +2353,7 @@ public static void readFully(Reader input, char[] buffer) throws IOException {
* @param input where to read input from
* @param buffer destination
* @param offset inital offset into buffer
* @param length length to read, must be >= 0
* @param length length to read
* @throws IOException if there is a problem reading the file
* @throws IllegalArgumentException if length is negative
* @throws EOFException if the number of bytes read was incorrect
Expand Down
2 changes: 1 addition & 1 deletion pay-java-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>
Expand Down
Binary file added pay-java-demo/src/main/webapp/gzh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pay-java-demo/src/main/webapp/wx.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pay-java-fuiou/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-fuiou</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pay-java-payoneer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-payoneer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pay-java-paypal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pay-java-union/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pay-java-wx-youdian/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-wx-youdian</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pay-java-wx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pay-java-wx</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import java.util.Map;

/**
* @description:账单接口
* 账单接口
* @author: faymanwang
* @email: [email protected]
* @time: 2020/7/31 11:21
* email: [email protected]
* time: 2020/7/31 11:21
*/
public interface WxBillService {

public Map<String, Object> downloadbill(Date billDate, String billType, String path);
Map<String, Object> downloadbill(Date billDate, String billType, String path);
}
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,9 @@ public Map<String, Object> downloadbill(Date billDate, String billType, String p
/**
* GZIP解压缩
*
* @param input
* @return
* @param input 输入流账单
* @return 解压后输入流
* @throws IOException IOException
*/
public static InputStream uncompress(InputStream input) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
/**
* 微信退款结果
* @author Egan
* <pre></pre>
* <pre>
* email [email protected]
* date 2020/8/16 21:29
* </pre>
*/
public class WxRefundResult extends BaseRefundResult {

Expand Down Expand Up @@ -123,7 +124,7 @@ public class WxRefundResult extends BaseRefundResult {
private BigDecimal refundFee;
/**
* 应结退款金额
* 去掉非充值代金券退款金额后的退款金额,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
* 去掉非充值代金券退款金额后的退款金额,退款金额=申请退款金额-非充值代金券退款金额,退款金额&lt;=申请退款金额
*/
@JSONField(name = "settlement_refund_fee")
private BigDecimal settlementRefundFee;
Expand All @@ -135,7 +136,7 @@ public class WxRefundResult extends BaseRefundResult {
private BigDecimal totalFee;
/**
* 应结订单金额
* 去掉非充值代金券金额后的订单总金额,应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。
* 去掉非充值代金券金额后的订单总金额,应结订单金额=订单金额-非充值代金券金额,应结订单金额&lt;=订单金额。
*/
@JSONField(name = "settlement_total_fee")
private BigDecimal settlementTotalFee;
Expand Down Expand Up @@ -176,13 +177,13 @@ public class WxRefundResult extends BaseRefundResult {
private String couponType0;
/**
* 代金券退款总金额
* 代金券退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见代金券或立减优惠
* 代金券退款金额&lt;=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见代金券或立减优惠
*/
@JSONField(name = "coupon_refund_fee")
private BigDecimal couponRefundFee;
/**
* 单个代金券退款金额
* 代金券退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见代金券或立减优惠
* 代金券退款金额&lt;=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见代金券或立减优惠
* 这里只接收0的,其余请自行获取
*/
@JSONField(name = "coupon_refund_fee_0")
Expand Down
2 changes: 1 addition & 1 deletion pay-java-yiji/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pay-java-parent</artifactId>
<groupId>com.egzosn</groupId>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.egzosn</groupId>
<artifactId>pay-java-parent</artifactId>
<packaging>pom</packaging>
<version>2.13.3-SNAPSHOT</version>
<version>2.13.3</version>

<name>Pay Java - Parent</name>
<description>Pay Java Parent</description>
Expand Down Expand Up @@ -64,7 +64,7 @@


<properties>
<pay.version>2.13.3-SNAPSHOT</pay.version>
<pay.version>2.13.3</pay.version>
<httpmime.version>4.5.4</httpmime.version>
<log4j.version>1.2.17</log4j.version>
<fastjson.version>1.2.73</fastjson.version>
Expand Down

0 comments on commit 9a6d262

Please sign in to comment.