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
c33ac5ae
Commit
c33ac5ae
authored
Sep 09, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pushFileUpload调整上传机场无人机日志文件在oss的目录
parent
6eb9aaf2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
sample/src/main/java/com/dji/sample/manage/service/impl/DeviceLogsServiceImpl.java
+4
-1
No files found.
sample/src/main/java/com/dji/sample/manage/service/impl/DeviceLogsServiceImpl.java
View file @
c33ac5ae
...
@@ -49,6 +49,9 @@ import java.time.ZoneId;
...
@@ -49,6 +49,9 @@ import java.time.ZoneId;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
com
.
dji
.
sample
.
common
.
util
.
SecurityUtils
.
getOrgId
;
import
static
com
.
dji
.
sample
.
common
.
util
.
SecurityUtils
.
getWorkspaceId
;
/**
/**
* @author sean
* @author sean
* @version 1.2
* @version 1.2
...
@@ -152,7 +155,7 @@ public class DeviceLogsServiceImpl extends AbstractLogService implements IDevice
...
@@ -152,7 +155,7 @@ public class DeviceLogsServiceImpl extends AbstractLogService implements IDevice
LogsUploadCredentialsDTO
credentialsDTO
=
new
LogsUploadCredentialsDTO
(
stsCredentials
);
LogsUploadCredentialsDTO
credentialsDTO
=
new
LogsUploadCredentialsDTO
(
stsCredentials
);
// Set the storage name of the file.
// Set the storage name of the file.
List
<
FileUploadStartFile
>
files
=
param
.
getFiles
();
List
<
FileUploadStartFile
>
files
=
param
.
getFiles
();
files
.
forEach
(
file
->
file
.
setObjectKey
(
credentialsDTO
.
getObjectKeyPrefix
()
+
"/"
+
UUID
.
randomUUID
().
toString
()
+
LOGS_FILE_SUFFIX
));
files
.
forEach
(
file
->
file
.
setObjectKey
(
credentialsDTO
.
getObjectKeyPrefix
()
+
"/"
+
getWorkspaceId
()
+
"/"
+
getOrgId
()
+
"/"
+
"logs"
+
"/"
+
UUID
.
randomUUID
().
toString
()
+
LOGS_FILE_SUFFIX
));
credentialsDTO
.
setParams
(
new
FileUploadStartParam
().
setFiles
(
files
));
credentialsDTO
.
setParams
(
new
FileUploadStartParam
().
setFiles
(
files
));
...
...
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