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
13a25c60
authored
2025-06-30 21:03:37 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
227cab5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
lego-system/src/main/java/com/lego/system/service/impl/SysOssServiceImpl.java
lego-system/src/main/java/com/lego/system/service/impl/SysOssServiceImpl.java
View file @
13a25c6
...
...
@@ -40,10 +40,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -80,11 +77,13 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
private
void
repUrl
(
SysOssVo
vo
)
{
String
baseUrl
=
configService
.
getConfigValue
(
"sys.oss.baseUrl"
);
if
(
Objects
.
nonNull
(
vo
))
{
String
url
=
vo
.
getUrl
();
if
(
StrUtil
.
isNotBlank
(
url
)
&&
StrUtil
.
isNotBlank
(
baseUrl
))
{
vo
.
setUrl
(
url
.
replace
(
"127.0.0.1:9000"
,
baseUrl
));
}
}
}
@Override
public
List
<
SysOssVo
>
listByIds
(
Collection
<
Long
>
ossIds
)
{
...
...
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