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
14cae3dc
Commit
14cae3dc
authored
May 21, 2025
by
真的三个金鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UOM 上报 BUG 400 修复
parent
d0faa3e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sample/src/main/java/com/dji/sample/uom/UOMRecordService.java
+6
-5
No files found.
sample/src/main/java/com/dji/sample/uom/UOMRecordService.java
View file @
14cae3dc
...
@@ -40,15 +40,16 @@ public class UOMRecordService {
...
@@ -40,15 +40,16 @@ public class UOMRecordService {
}
}
* */
* */
public
String
sendRecord
(
UOMDroneFlightRecordDTO
uomDroneFlightRecordDTO
)
throws
Exception
{
public
String
sendRecord
(
UOMDroneFlightRecordDTO
uomDroneFlightRecordDTO
)
throws
Exception
{
HttpRequest
post
=
HttpUtil
.
createPost
(
uomConfiguration
.
getUrl
());
post
.
header
(
"source"
,
String
.
valueOf
(
uomConfiguration
.
getSource
()));
post
.
header
(
"platform"
,
uomConfiguration
.
getPlatform
());
post
.
header
(
"programVersion"
,
uomConfiguration
.
getProgramVersion
());
SendUOMDTO
sendUOMDTO
=
new
SendUOMDTO
();
SendUOMDTO
sendUOMDTO
=
new
SendUOMDTO
();
sendUOMDTO
.
setAppID
(
uomConfiguration
.
getAppID
());
sendUOMDTO
.
setAppID
(
uomConfiguration
.
getAppID
());
List
<
UOMDroneFlightRecordDTO
>
paths
=
sendUOMDTO
.
getPaths
();
List
<
UOMDroneFlightRecordDTO
>
paths
=
sendUOMDTO
.
getPaths
();
paths
.
add
(
uomDroneFlightRecordDTO
);
paths
.
add
(
uomDroneFlightRecordDTO
);
HttpRequest
post
=
HttpUtil
.
createPost
(
uomConfiguration
.
getUrl
());
post
.
header
(
"source"
,
String
.
valueOf
(
uomConfiguration
.
getSource
()));
post
.
header
(
"platform"
,
uomConfiguration
.
getPlatform
());
post
.
header
(
"programVersion"
,
uomConfiguration
.
getProgramVersion
());
post
.
header
(
"signature"
,
JSONUtil
.
toJsonStr
(
sendUOMDTO
));
post
.
header
(
"Content-Type"
,
"application/json"
);
sendUOMDTO
.
setPaths
(
paths
);
sendUOMDTO
.
setPaths
(
paths
);
String
encrypt
=
SM3Util
.
encrypt
(
JSONUtil
.
toJsonStr
(
sendUOMDTO
),
uomConfiguration
.
getAppKey
());
String
encrypt
=
SM3Util
.
encrypt
(
JSONUtil
.
toJsonStr
(
sendUOMDTO
),
uomConfiguration
.
getAppKey
());
post
.
body
(
encrypt
);
post
.
body
(
encrypt
);
...
...
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