Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-live
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
hqzhdj
cloud-live
Commits
51e744ad
Commit
51e744ad
authored
Feb 26, 2021
by
胡涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打日志
parent
d446c542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cloud-live-service/src/main/java/com/yizhi/live/application/service/impl/LiveActivityServiceImpl.java
+4
-2
No files found.
cloud-live-service/src/main/java/com/yizhi/live/application/service/impl/LiveActivityServiceImpl.java
View file @
51e744ad
...
...
@@ -722,12 +722,14 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
params
.
put
(
"channelIds"
,
channelIds
);
String
sign
=
LiveUtil
.
generateSign
(
params
,
UtilConstants
.
APP_SECRET
);
params
.
put
(
"sign"
,
sign
);
LOG
.
info
(
"获取频道直播状态channelIds ={}"
,
channelIds
,
"保利威视查询状态参数:"
+
params
.
toString
());
String
result
=
LiveUtil
.
sendHttpPost
(
UtilConstants
.
LIVE_STATUS_URL
,
params
);
if
(
StringUtils
.
isEmpty
(
result
))
{
LOG
.
warn
(
"获取频道直播状态异常;channelIds ={}"
,
channelIds
);
return
statusMap
;
}
JSONObject
obj
=
JSON
.
parseObject
(
result
);
LOG
.
info
(
"获取频道直播状态channelIds ={}"
,
channelIds
,
"保利威视查询状态:"
+
result
);
if
(
"error"
.
equals
(
obj
.
get
(
"status"
).
toString
()))
{
return
statusMap
;
}
...
...
@@ -1139,7 +1141,8 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
return
countVoList
;
}
ObjectMapper
mapper
=
new
ObjectMapper
();
PolyvResponseVo
<
List
<
LiveOnlineCountVo
>>
responseVo
=
mapper
.
readValue
(
result
,
new
TypeReference
<
PolyvResponseVo
<
List
<
LiveOnlineCountVo
>>>()
{});
PolyvResponseVo
<
List
<
LiveOnlineCountVo
>>
responseVo
=
mapper
.
readValue
(
result
,
new
TypeReference
<
PolyvResponseVo
<
List
<
LiveOnlineCountVo
>>>()
{
});
int
code
=
responseVo
.
getCode
();
List
<
LiveOnlineCountVo
>
data
=
responseVo
.
getData
();
if
(
200
!=
code
||
null
==
data
||
data
.
isEmpty
())
{
...
...
@@ -1321,7 +1324,6 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
}
@Override
public
BizResponse
<
List
<
LiveTitleVo
>>
reviewLiveList
(
LiveReviewsVo
liveReviewsVo
)
{
...
...
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