Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
2e753bfd
Commit
2e753bfd
authored
May 28, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-工行回单下载
parent
7889ff38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
IcbcTransactionFlowIssueServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
+2
-9
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
View file @
2e753bfd
...
...
@@ -1059,7 +1059,6 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
// 私钥路径(用于身份验证)
//E:\IdeaProjects\yifu_mvp\yifu-ekp\yifu-ekp-biz\src\main\resources\icbc\icbc
String
privateKeyPath
=
""
;
// URL url = getClass().getClassLoader().getResource("icbc");
InputStream
inputStream
=
getClass
().
getClassLoader
().
getResourceAsStream
(
"icbc"
);
if
(
inputStream
==
null
)
{
throw
new
FileNotFoundException
(
"资源未找到"
);
...
...
@@ -1076,7 +1075,6 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
}
}
privateKeyPath
=
tempFile
.
getAbsolutePath
();
// privateKeyPath = url.getPath();
// 远程目录路径
log
.
info
(
"秘钥文件目录: "
+
privateKeyPath
);
...
...
@@ -1141,14 +1139,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
}
String
tempDir
=
System
.
getProperty
(
"java.io.tmpdir"
)
+
"sftp_processing/"
+
System
.
currentTimeMillis
()
+
"/"
;
File
dir
=
new
File
(
tempDir
);
if
(!
dir
.
exists
())
{
if
(!
dir
.
mkdirs
())
{
throw
new
IOException
(
"Failed to create directory: "
+
tempDir
);
}
if
(!
dir
.
exists
()
&&
!
dir
.
mkdirs
())
{
throw
new
IOException
(
"Failed to create directory: "
+
tempDir
);
}
// 3. 创建临时目录 System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/tem/sftp_processing/" + System.currentTimeMillis() + "/";
// String tempDir = privateKeyPath + "/temp/sftp_processing/" + System.currentTimeMillis() + "/";
// String tempDir = System.getProperty("user.dir") + "/yifu-ekp/yifu-ekp-biz/src/main/resources/temp/sftp_processing/" + System.currentTimeMillis() + "/";
log
.
info
(
"临时目录: "
+
tempDir
);
// 4. 下载并解压压缩包
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment