Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
0552ff9a
Commit
0552ff9a
authored
Jun 01, 2024
by
kinky2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频接口增加截图
parent
6727088e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
CommonVideoDto.java
...amos/boot/module/cylinder/flc/api/dto/CommonVideoDto.java
+2
-0
CylinderUnitVideoServiceImpl.java
...er/flc/biz/service/impl/CylinderUnitVideoServiceImpl.java
+7
-5
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/dto/CommonVideoDto.java
View file @
0552ff9a
...
@@ -17,4 +17,6 @@ public class CommonVideoDto {
...
@@ -17,4 +17,6 @@ public class CommonVideoDto {
private
String
title
;
private
String
title
;
private
String
thumb
;
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylinderUnitVideoServiceImpl.java
View file @
0552ff9a
...
@@ -68,12 +68,13 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
...
@@ -68,12 +68,13 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
String
accessToken
=
objTokenJson
.
get
(
"accessToken"
).
toString
();
String
accessToken
=
objTokenJson
.
get
(
"accessToken"
).
toString
();
System
.
out
.
println
(
accessToken
);
System
.
out
.
println
(
accessToken
);
String
channelNos
=
cylinderUnitVideo
.
getChannelNo
();
String
channelNos
=
cylinderUnitVideo
.
getChannelNo
();
List
<
String
>
channelNoList
=
Arrays
.
asList
(
channelNos
.
split
(
","
));
List
<
CommonVideoDto
>
channelNoList
=
JSONObject
.
parseArray
(
channelNos
,
CommonVideoDto
.
class
);
for
(
String
channelNo
:
channelNoList
)
{
// List<String> channelNoList = Arrays.asList(channelNos.split(","));
for
(
CommonVideoDto
channelNo
:
channelNoList
)
{
HashMap
<
String
,
Object
>
requestVideosInfo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
requestVideosInfo
=
new
HashMap
<>();
requestVideosInfo
.
put
(
"accessToken"
,
accessToken
);
requestVideosInfo
.
put
(
"accessToken"
,
accessToken
);
requestVideosInfo
.
put
(
"deviceSerial"
,
cylinderUnitVideo
.
getDeviceSerial
());
requestVideosInfo
.
put
(
"deviceSerial"
,
cylinderUnitVideo
.
getDeviceSerial
());
requestVideosInfo
.
put
(
"channelNo"
,
channelNo
);
requestVideosInfo
.
put
(
"channelNo"
,
channelNo
.
getKey
()
);
requestVideosInfo
.
put
(
"protocol"
,
cylinderUnitVideo
.
getProtocol
());
requestVideosInfo
.
put
(
"protocol"
,
cylinderUnitVideo
.
getProtocol
());
requestVideosInfo
.
put
(
"expireTime"
,
cylinderUnitVideo
.
getExpireTime
());
requestVideosInfo
.
put
(
"expireTime"
,
cylinderUnitVideo
.
getExpireTime
());
String
videoData
=
HttpUtil
.
post
(
cylinderUnitVideo
.
getUrl
(),
requestVideosInfo
);
String
videoData
=
HttpUtil
.
post
(
cylinderUnitVideo
.
getUrl
(),
requestVideosInfo
);
...
@@ -90,9 +91,10 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
...
@@ -90,9 +91,10 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
String
url
=
dd
.
get
(
"url"
).
toString
();
String
url
=
dd
.
get
(
"url"
).
toString
();
CommonVideoDto
commonVideoDto
=
new
CommonVideoDto
();
CommonVideoDto
commonVideoDto
=
new
CommonVideoDto
();
commonVideoDto
.
setUrl
(
url
);
commonVideoDto
.
setUrl
(
url
);
commonVideoDto
.
setKey
(
channelNo
);
commonVideoDto
.
setKey
(
channelNo
.
getKey
()
);
commonVideoDto
.
setType
(
CommonVideoEnum
.
getEnum
(
cylinderUnitVideo
.
getProtocol
()).
getName
());
commonVideoDto
.
setType
(
CommonVideoEnum
.
getEnum
(
cylinderUnitVideo
.
getProtocol
()).
getName
());
commonVideoDto
.
setTitle
(
cylinderUnitVideo
.
getTitle
());
commonVideoDto
.
setTitle
(
channelNo
.
getTitle
());
commonVideoDto
.
setThumb
(
channelNo
.
getThumb
());
result
.
add
(
commonVideoDto
);
result
.
add
(
commonVideoDto
);
}
}
}
}
...
...
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