Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c0c380b8
authored
2025-08-10 18:52:04 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
f78b010f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
lego-oss/src/main/java/com/lego/oss/core/OssClient.java
lego-oss/src/main/java/com/lego/oss/core/OssClient.java
View file @
c0c380b
...
...
@@ -163,8 +163,9 @@ public class OssClient {
}
public
InputStream
getObjectContent
(
String
path
)
{
log
.
info
(
"=====getUrl()=="
+
getUrl
());
path
=
path
.
replace
(
"http://127.0.0.1:9000"
+
"/"
,
""
);
path
=
path
.
replace
(
getUrl
()
+
"/"
,
""
);
log
.
info
(
"============path==========="
+
path
);
log
.
info
(
"============properties.getBucketName()==========="
+
properties
.
getBucketName
());
S3Object
object
=
client
.
getObject
(
properties
.
getBucketName
(),
path
);
return
object
.
getObjectContent
();
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment