Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
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
e93fa3ef
authored
2025-10-31 15:04:47 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
1、图片上传
1 parent
39a68f93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/DataPortServiceImpl.java
View file @
e93fa3e
...
...
@@ -120,7 +120,7 @@ public class DataPortServiceImpl implements DataPortService {
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
respJson
.
getString
(
"message"
));
}
}
else
{
String
fileName
=
"身份凭证.png"
;
String
fileName
=
String
.
format
(
"%s.png"
,
entity
.
getTenantName
())
;
MultipartFile
image
=
new
MockMultipartFile
(
fileName
,
fileName
,
"application/octet-stream"
,
resourceByteArray
);
String
url
=
(
String
)
daopCommonFeign
.
uploadFile
(
image
,
fileName
).
getData
();
log
.
info
(
"======url======, {}"
,
url
);
...
...
@@ -188,7 +188,7 @@ public class DataPortServiceImpl implements DataPortService {
throw
new
CsbrSystemException
(
SystemError
.
DATA_GET_ERROR
,
respJson
.
getString
(
"message"
));
}
}
else
{
String
fileName
=
"身份凭证.png"
;
String
fileName
=
String
.
format
(
"%s.png"
,
entity
.
getTenantName
())
;
MultipartFile
image
=
new
MockMultipartFile
(
fileName
,
fileName
,
"application/octet-stream"
,
resourceByteArray
);
String
url
=
(
String
)
daopCommonFeign
.
uploadFile
(
image
,
fileName
).
getData
();
log
.
info
(
"======url======, {}"
,
url
);
...
...
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