Toggle navigation
Toggle navigation
This project
Loading...
Sign in
crp
/
crp-operation
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wanghongbo
2025-08-01 16:13:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fee3911dd5624a3711313d49dbf4d0997445033
2fee3911
1 parent
558fbc80
增加输出日志
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
src/main/java/com/wondertek/service/impl/RoomOperationServiceImpl.java
src/main/java/com/wondertek/service/impl/RoomOperationServiceImpl.java
View file @
2fee391
...
...
@@ -117,6 +117,8 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice {
@Override
public
ResultBean
blockStatus
(
BlockParam
blockParam
)
{
Long
start
=
System
.
currentTimeMillis
();
LiveMonitorRoom
liveMonitorRoom
=
liveMonitorRoomMapper
.
selectById
(
blockParam
.
getRoomId
());
if
(
ObjectUtil
.
isNull
(
liveMonitorRoom
)){
return
ResultBean
.
error
(
"审片间不存在"
);
...
...
@@ -129,6 +131,8 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice {
if
(
CollectionUtils
.
isEmpty
(
streamTasks
)){
return
ResultBean
.
error
(
"当前审片间没有播放任务"
);
}
log
.
info
(
"-->审片间屏蔽前置逻辑耗时:{}ms"
,
System
.
currentTimeMillis
()-
start
);
streamTasks
.
forEach
(
streamTask
->
{
//调用屏蔽接口
Map
<
String
,
Object
>
paramsMap
=
new
HashMap
<>();
...
...
@@ -136,11 +140,13 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice {
paramsMap
.
put
(
"blockStatus"
,
blockParam
.
getBlockStatus
());
HttpResponse
execute
=
null
;
try
{
long
tag1
=
System
.
currentTimeMillis
();
execute
=
HttpRequest
.
put
(
blockStatusUrl
)
.
header
(
"Content-Type"
,
"application/json"
)
.
body
(
JSONUtils
.
obj2json
(
paramsMap
)).
timeout
(
30000
).
execute
();
if
(
execute
.
isOk
())
{
log
.
info
(
"-->请求转码系统屏蔽/恢复接口,url:{},paramsMap:{}"
,
blockStatusUrl
,
paramsMap
);
log
.
info
(
"请求转码系统屏蔽/恢复接口,请求耗时:{}ms"
,
System
.
currentTimeMillis
()-
tag1
);
String
body
=
execute
.
body
();
ResponseData
response
=
JSONUtils
.
jsonToObject
(
body
,
new
TypeReference
<
ResponseData
>()
{
});
...
...
Please
register
or
login
to post a comment