lighter 2 vuotta sitten
vanhempi
commit
fb6bab8483

+ 1 - 1
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiDownloadService.java

@@ -1031,7 +1031,7 @@ public class SiDownloadService {
         fsDownloadIn.put("filename", filename);
         fsDownloadIn.put("fixmedins_code", SiUtil.INSTITUTION_ID);
         input.getJSONObject("input").put("fsDownloadIn", fsDownloadIn);
-        String targetPath = "D:\\" + filename;
+        String targetPath = "/home/web-server/temp/" + filename;
         ForestResponse<byte[]> rsp = execSrvc.download(SiUtil.getSiHeaderMap(SiFunction.DOWNLOAD_FILE), input);
         try {
             Files.write(Paths.get(targetPath), Objects.requireNonNull(rsp.getByteArray(),

+ 1 - 6
src/main/java/thyyxxk/webserver/utils/WxCertUtil.java

@@ -13,16 +13,11 @@ public class WxCertUtil {
     public static final String APP_ID = "wxbde6b16acad84204";
     public static final String MERCHANT_ID = "1574204121";
     public static final String MERCHANT_KEY = "lilaiwflzIOLJI2320JLZL2Llisd02ak";
-    public static final String CERT_PATH = "D:\\a.snapshot\\zwxcert\\apiclient_cert.p12";
-    public static final String CERT_PATH2 = "/home/zwxcert/apiclient_cert.p12";
+    public static final String CERT_PATH = "/home/zwxcert/apiclient_cert.p12";
     public static byte[] CERTDATA;
     static {
         try {
             File file = new File(CERT_PATH);
-            if (!file.exists()) {
-                file = new File(CERT_PATH2);
-            }
-//            InputStream certStream = new FileInputStream(file);
             InputStream certStream = Files.newInputStream(file.toPath());
             CERTDATA = new byte[(int) file.length()];
             //noinspection ResultOfMethodCallIgnored

+ 1 - 1
src/main/java/thyyxxk/webserver/utils/ZipUtil.java

@@ -53,7 +53,7 @@ public class ZipUtil {
         while((entry = in.getNextEntry()) != null){
             if(!entry.isDirectory()){
                 //文件输出流
-                unZipPath = "D:\\"+entry.getName();
+                unZipPath = "/home/web-server/temp/"+entry.getName();
                 FileOutputStream out = new FileOutputStream(unZipPath);
                 BufferedOutputStream bos = new BufferedOutputStream(out);
                 int len;