Commit ec6868cc authored by huyuchen's avatar huyuchen

huych-工行回单下载

parent 8523dbf4
...@@ -1058,8 +1058,11 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -1058,8 +1058,11 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
String username = "wxrl"; String username = "wxrl";
// 私钥路径(用于身份验证) // 私钥路径(用于身份验证)
//String privateKeyPath = "D:/icbcFile/icbc"; // 替换为你的私钥路径 //String privateKeyPath = "D:/icbcFile/icbc"; // 替换为你的私钥路径
//usr/lib/java/yifu-ekp-biz/yifu-ekp/yifu-ekp-biz/src/main/resources/icbc/icbc
//E:\IdeaProjects\yifu_mvp\yifu-ekp\yifu-ekp-biz\src\main\resources\icbc\icbc //E:\IdeaProjects\yifu_mvp\yifu-ekp\yifu-ekp-biz\src\main\resources\icbc\icbc
String privateKeyPath = System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/icbc/icbc"; // 远程目录路径 String privateKeyPath = this.getClass().getClassLoader().getResource("icbc/icbc").getPath();
//System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/icbc/icbc"; // 远程目录路径
log.info("秘钥文件目录: " + privateKeyPath); log.info("秘钥文件目录: " + privateKeyPath);
// 远程目录路径 // 远程目录路径
String remoteDir = "/JFTStatementDownload/download"; String remoteDir = "/JFTStatementDownload/download";
...@@ -1122,7 +1125,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -1122,7 +1125,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
} }
// 3. 创建临时目录 // 3. 创建临时目录
String tempDir = System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/tem/sftp_processing/" + System.currentTimeMillis() + "/"; String tempDir = this.getClass().getClassLoader().getResource("tem/sftp_processing/").getPath() + System.currentTimeMillis() + "/";
log.info("临时目录: " + privateKeyPath);
//System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/tem/sftp_processing/" + System.currentTimeMillis() + "/";
new File(tempDir).mkdirs(); new File(tempDir).mkdirs();
// 4. 下载并解压压缩包 // 4. 下载并解压压缩包
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment