Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
23b8746e
Commit
23b8746e
authored
Jan 03, 2019
by
songxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩包名称优化
parent
4012f52e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CompressUtils.java
.../main/java/com/pcloud/common/utils/zip/CompressUtils.java
+3
-3
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/zip/CompressUtils.java
View file @
23b8746e
...
...
@@ -120,8 +120,8 @@ public class CompressUtils {
if
(
ListUtils
.
isEmpty
(
fileUrlList
))
{
return
null
;
}
zipName
=
FileUtils
.
formatName
(
zipName
);
String
tempZipName
=
zipName
+
"_"
+
LocalDateUtils
.
getYmdhmss
();
String
zipNameFormat
=
FileUtils
.
formatName
(
zipName
);
String
tempZipName
=
zipName
Format
+
"_"
+
LocalDateUtils
.
getYmdhmss
();
String
zipFilePath
=
ZIP_FILE_PATH
+
tempZipName
+
".zip"
;
// 检查临时文件夹是否存在,不存在就创建
String
fileFolderPath
=
FILE_LOCAL_PATH
+
tempZipName
;
...
...
@@ -141,7 +141,7 @@ public class CompressUtils {
FileUtils
.
isDir
(
ZIP_FILE_PATH
);
CompressUtils
.
zip
(
fileFolderPath
,
zipFilePath
);
// 上传文件到服务器中
uploadResultInfo
=
OssUtils
.
uploadLocalFile4CustomName
(
zipFilePath
,
zipName
);
uploadResultInfo
=
OssUtils
.
uploadLocalFile4CustomName
(
zipFilePath
,
zipName
Format
);
uploadResultInfo
.
setFileName
(
zipName
);
}
catch
(
Exception
e
)
{
LOGGER
.
error
(
"【压缩】压缩失败,<ERROR>:"
+
e
.
getMessage
(),
e
);
...
...
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