Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
d8d484f8
Commit
d8d484f8
authored
Aug 28, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复L2上传文件bug
parent
b27b1694
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
sample/src/main/java/com/dji/sample/media/service/impl/MediaServiceImpl.java
+5
-1
No files found.
sample/src/main/java/com/dji/sample/media/service/impl/MediaServiceImpl.java
View file @
d8d484f8
...
@@ -203,7 +203,11 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ
...
@@ -203,7 +203,11 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ
if
(
StringUtils
.
hasText
(
orgId
))
{
if
(
StringUtils
.
hasText
(
orgId
))
{
// 增加 org路径
// 增加 org路径
path
=
path
.
replace
(
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
(),
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
()
+
"/"
+
orgId
);
if
(
path
.
contains
(
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
()))
{
path
=
path
.
replace
(
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
(),
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
()
+
"/"
+
orgId
);
}
else
{
path
=
path
.
replace
(
OssConfiguration
.
objectDirPrefix
,
OssConfiguration
.
objectDirPrefix
+
"/"
+
device
.
getWorkspaceId
()
+
"/"
+
orgId
);
}
// jobId改成 jobName
// jobId改成 jobName
// if (jobDTO != null) {
// if (jobDTO != null) {
// path = path.replace(callback.getFile().getExt().getFlightId(), jobDTO.getJobName());
// path = path.replace(callback.getFile().getExt().getFlightId(), jobDTO.getJobName());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment