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
de49a7a5
authored
2024-11-24 15:49:40 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
e5dc72de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 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 @
de49a7a
...
...
@@ -69,7 +69,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
for
(
SysOssVo
vo
:
list
)
{
String
url
=
vo
.
getUrl
();
if
(
StrUtil
.
isNotBlank
(
url
)
&&
StrUtil
.
isNotBlank
(
baseUrl
))
{
vo
.
setUrl
(
url
.
replace
(
"127.0.0.1"
,
baseUrl
));
vo
.
setUrl
(
url
.
replace
(
"127.0.0.1
:9000
"
,
baseUrl
));
}
}
}
...
...
@@ -78,7 +78,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
String
baseUrl
=
configService
.
getConfigValue
(
"sys.oss.baseUrl"
);
String
url
=
vo
.
getUrl
();
if
(
StrUtil
.
isNotBlank
(
url
)
&&
StrUtil
.
isNotBlank
(
baseUrl
))
{
vo
.
setUrl
(
url
.
replace
(
"127.0.0.1"
,
baseUrl
));
vo
.
setUrl
(
url
.
replace
(
"127.0.0.1
:9000
"
,
baseUrl
));
}
}
...
...
@@ -119,8 +119,6 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
List
<
String
>
repList
=
new
ArrayList
<>();
for
(
String
url
:
list
)
{
if
(
StrUtil
.
isNotBlank
(
url
)
&&
StrUtil
.
isNotBlank
(
baseUrl
))
{
System
.
out
.
println
(
"========url==========="
+
url
);
System
.
out
.
println
(
"========baseUrl==========="
+
baseUrl
);
repList
.
add
(
url
.
replace
(
"127.0.0.1:9000"
,
baseUrl
));
}
}
...
...
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