|
20 | 20 | import com.github.binarywang.wxpay.service.*;
|
21 | 21 | import com.github.binarywang.wxpay.util.SignUtils;
|
22 | 22 | import com.github.binarywang.wxpay.util.XmlConfig;
|
| 23 | +import com.github.binarywang.wxpay.util.ZipUtils; |
23 | 24 | import com.github.binarywang.wxpay.v3.util.AesUtils;
|
24 | 25 | import com.google.common.base.Joiner;
|
25 | 26 | import com.google.common.collect.ImmutableMap;
|
26 | 27 | import com.google.common.collect.Maps;
|
27 | 28 | import com.google.gson.Gson;
|
28 | 29 | import com.google.gson.GsonBuilder;
|
29 |
| -import jodd.io.ZipUtil; |
30 | 30 | import me.chanjar.weixin.common.error.WxRuntimeException;
|
31 | 31 | import org.apache.commons.lang3.StringUtils;
|
32 | 32 | import org.slf4j.Logger;
|
@@ -888,7 +888,7 @@ private String handleGzipBill(String url, String requestStr) throws WxPayExcepti
|
888 | 888 | Path path = Paths.get(tempDirectory.toString(), System.currentTimeMillis() + ".gzip");
|
889 | 889 | Files.write(path, responseBytes);
|
890 | 890 | try {
|
891 |
| - List<String> allLines = Files.readAllLines(ZipUtil.ungzip(path.toFile()).toPath(), StandardCharsets.UTF_8); |
| 891 | + List<String> allLines = Files.readAllLines(ZipUtils.unGzip(path.toFile()).toPath(), StandardCharsets.UTF_8); |
892 | 892 | return Joiner.on("\n").join(allLines);
|
893 | 893 | } catch (ZipException e) {
|
894 | 894 | if (e.getMessage().contains("Not in GZIP format")) {
|
@@ -941,7 +941,7 @@ private String handleGzipFundFlow(String url, String requestStr) throws WxPayExc
|
941 | 941 | Files.write(path, responseBytes);
|
942 | 942 |
|
943 | 943 | try {
|
944 |
| - List<String> allLines = Files.readAllLines(ZipUtil.ungzip(path.toFile()).toPath(), StandardCharsets.UTF_8); |
| 944 | + List<String> allLines = Files.readAllLines(ZipUtils.unGzip(path.toFile()).toPath(), StandardCharsets.UTF_8); |
945 | 945 | return Joiner.on("\n").join(allLines);
|
946 | 946 | } catch (ZipException e) {
|
947 | 947 | if (e.getMessage().contains("Not in GZIP format")) {
|
|
0 commit comments