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
58da615e
authored
2024-11-24 15:54:03 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
de49a7a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 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 @
58da615
...
...
@@ -106,6 +106,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
List
<
String
>
list
=
new
ArrayList
<>();
for
(
Long
id
:
StringUtils
.
splitTo
(
ossIds
,
Convert:
:
toLong
))
{
SysOssVo
vo
=
SpringUtils
.
getAopProxy
(
this
).
getById
(
id
);
System
.
out
.
println
(
"===========3==========="
+
vo
.
getUrl
());
if
(
ObjectUtil
.
isNotNull
(
vo
))
{
try
{
list
.
add
(
this
.
matchingUrl
(
vo
).
getUrl
());
...
...
@@ -118,6 +119,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
String
baseUrl
=
configService
.
getConfigValue
(
"sys.oss.baseUrl"
);
List
<
String
>
repList
=
new
ArrayList
<>();
for
(
String
url
:
list
)
{
System
.
out
.
println
(
"=========4=========="
+
url
);
if
(
StrUtil
.
isNotBlank
(
url
)
&&
StrUtil
.
isNotBlank
(
baseUrl
))
{
repList
.
add
(
url
.
replace
(
"127.0.0.1:9000"
,
baseUrl
));
}
...
...
@@ -143,7 +145,9 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
@Override
public
SysOssVo
getById
(
Long
ossId
)
{
SysOssVo
vo
=
baseMapper
.
selectVoById
(
ossId
);
System
.
out
.
println
(
"=========1==========="
+
vo
.
getUrl
());
repUrl
(
vo
);
System
.
out
.
println
(
"=========2==========="
+
vo
.
getUrl
());
return
vo
;
}
...
...
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