Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
6c9f0477
Commit
6c9f0477
authored
Dec 19, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(upload): oss文件上传路径优化
parent
a3b7f5f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
CommonController.java
...va/com/dlbridge/jadp/plugins/common/CommonController.java
+2
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/common/CommonController.java
View file @
6c9f0477
...
@@ -87,6 +87,8 @@ public class CommonController {
...
@@ -87,6 +87,8 @@ public class CommonController {
String
objectName
=
UUID
.
randomUUID
()
+
extension
;
String
objectName
=
UUID
.
randomUUID
()
+
extension
;
if
(!
Objects
.
equals
(
folder
,
""
))
{
if
(!
Objects
.
equals
(
folder
,
""
))
{
objectName
=
folder
+
"/"
+
cmptId
+
"/"
+
objectName
;
objectName
=
folder
+
"/"
+
cmptId
+
"/"
+
objectName
;
}
else
{
objectName
=
"geexek-gk/"
+
cmptId
+
"/"
+
objectName
;
}
}
String
filePath
=
aliOssUtil
.
upload
(
file
.
getBytes
(),
objectName
);
String
filePath
=
aliOssUtil
.
upload
(
file
.
getBytes
(),
objectName
);
log
.
info
(
"文件上传名: {} 保存的文件名:{}"
,
originalFilename
,
filePath
);
log
.
info
(
"文件上传名: {} 保存的文件名:{}"
,
originalFilename
,
filePath
);
...
...
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