Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
93ca57b8
Commit
93ca57b8
authored
Aug 03, 2021
by
fhj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件服务 - 修复
parent
4def486e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
AliyunOSSUtil.java
...c/main/java/com/ssy/file/service/utils/AliyunOSSUtil.java
+1
-1
No files found.
file-service/src/main/java/com/ssy/file/service/utils/AliyunOSSUtil.java
View file @
93ca57b8
...
...
@@ -38,7 +38,7 @@ public class AliyunOSSUtil {
fileName
=
fileName
.
substring
(
0
,
fileName
.
lastIndexOf
(
"."
));
// String suffix = fileName.split("\\.")[1];
// fileName = fileName.split("\\.")[0];
fileName
=
fileName
.
concat
(
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
)
+
"."
.
concat
(
suffix
));
fileName
=
fileName
.
concat
(
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
).
concat
(
suffix
));
PutObjectResult
putObjectResult
=
client
.
putObject
(
constantConfig
.
getBucketName
(),
fileName
,
inputStream
);
if
(
null
!=
putObjectResult
)
{
url
=
HTTP
+
constantConfig
.
getBucketName
()
+
"."
+
constantConfig
.
getWebUrl
()
+
"/"
+
fileName
;
...
...
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