Commit 51e744ad by 胡涛

打日志

parent d446c542
...@@ -722,12 +722,14 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv ...@@ -722,12 +722,14 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
params.put("channelIds", channelIds); params.put("channelIds", channelIds);
String sign = LiveUtil.generateSign(params, UtilConstants.APP_SECRET); String sign = LiveUtil.generateSign(params, UtilConstants.APP_SECRET);
params.put("sign", sign); params.put("sign", sign);
LOG.info("获取频道直播状态channelIds ={}", channelIds, "保利威视查询状态参数:" + params.toString());
String result = LiveUtil.sendHttpPost(UtilConstants.LIVE_STATUS_URL, params); String result = LiveUtil.sendHttpPost(UtilConstants.LIVE_STATUS_URL, params);
if (StringUtils.isEmpty(result)) { if (StringUtils.isEmpty(result)) {
LOG.warn("获取频道直播状态异常;channelIds ={}", channelIds); LOG.warn("获取频道直播状态异常;channelIds ={}", channelIds);
return statusMap; return statusMap;
} }
JSONObject obj = JSON.parseObject(result); JSONObject obj = JSON.parseObject(result);
LOG.info("获取频道直播状态channelIds ={}", channelIds, "保利威视查询状态:" + result);
if ("error".equals(obj.get("status").toString())) { if ("error".equals(obj.get("status").toString())) {
return statusMap; return statusMap;
} }
...@@ -1139,7 +1141,8 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv ...@@ -1139,7 +1141,8 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
return countVoList; return countVoList;
} }
ObjectMapper mapper = new ObjectMapper(); 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(); int code = responseVo.getCode();
List<LiveOnlineCountVo> data = responseVo.getData(); List<LiveOnlineCountVo> data = responseVo.getData();
if (200 != code || null == data || data.isEmpty()) { if (200 != code || null == data || data.isEmpty()) {
...@@ -1321,7 +1324,6 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv ...@@ -1321,7 +1324,6 @@ public class LiveActivityServiceImpl extends ServiceImpl<LiveActivityMapper, Liv
} }
@Override @Override
public BizResponse<List<LiveTitleVo>> reviewLiveList(LiveReviewsVo liveReviewsVo) { public BizResponse<List<LiveTitleVo>> reviewLiveList(LiveReviewsVo liveReviewsVo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment