|
@@ -139,7 +139,6 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
LiveListChannelSessionInfoRequest liveListChannelSessionInfoRequest = new LiveListChannelSessionInfoRequest();
|
|
LiveListChannelSessionInfoRequest liveListChannelSessionInfoRequest = new LiveListChannelSessionInfoRequest();
|
|
LiveListChannelSessionInfoResponse liveListChannelSessionInfoResponse;
|
|
LiveListChannelSessionInfoResponse liveListChannelSessionInfoResponse;
|
|
try {
|
|
try {
|
|
- System.out.println(bo);
|
|
|
|
liveListChannelSessionInfoRequest.setChannelId(bo.getChannelId())
|
|
liveListChannelSessionInfoRequest.setChannelId(bo.getChannelId())
|
|
.setStartDate(new Date((bo.getStartTime()*1000)))
|
|
.setStartDate(new Date((bo.getStartTime()*1000)))
|
|
.setEndDate(new Date((bo.getEndTime()*1000)))
|
|
.setEndDate(new Date((bo.getEndTime()*1000)))
|
|
@@ -149,8 +148,6 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
if (liveListChannelSessionInfoResponse != null) {
|
|
if (liveListChannelSessionInfoResponse != null) {
|
|
if(Validator.isNotEmpty(liveListChannelSessionInfoResponse.getContents())&&liveListChannelSessionInfoResponse.getContents().size()>0){
|
|
if(Validator.isNotEmpty(liveListChannelSessionInfoResponse.getContents())&&liveListChannelSessionInfoResponse.getContents().size()>0){
|
|
//获取该房间最近一次场次
|
|
//获取该房间最近一次场次
|
|
- System.out.println("哈哈");
|
|
|
|
- System.out.println(JSON.toJSONString(liveListChannelSessionInfoResponse.getContents().get(0)));
|
|
|
|
LiveListChannelSessionInfoResponse.ChannelSessionInfo sessionInfo = liveListChannelSessionInfoResponse.getContents().get(0);
|
|
LiveListChannelSessionInfoResponse.ChannelSessionInfo sessionInfo = liveListChannelSessionInfoResponse.getContents().get(0);
|
|
bo.setSessionId(sessionInfo.getSessionId());
|
|
bo.setSessionId(sessionInfo.getSessionId());
|
|
return getChannelVideo(bo);
|
|
return getChannelVideo(bo);
|
|
@@ -189,7 +186,6 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
//to do something ......
|
|
//to do something ......
|
|
//获取场次的详细信息
|
|
//获取场次的详细信息
|
|
if(Validator.isNotEmpty(liveChannelVideoListResponse.getChannelVedioInfos())&&liveChannelVideoListResponse.getChannelVedioInfos().size()>0){
|
|
if(Validator.isNotEmpty(liveChannelVideoListResponse.getChannelVedioInfos())&&liveChannelVideoListResponse.getChannelVedioInfos().size()>0){
|
|
- System.out.println(JSON.toJSONString(liveChannelVideoListResponse.getChannelVedioInfos().get(0)));
|
|
|
|
return liveChannelVideoListResponse.getChannelVedioInfos().get(0);
|
|
return liveChannelVideoListResponse.getChannelVedioInfos().get(0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -277,8 +273,6 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
liveGetConsultingRecordResponseList = new LiveChatRoomServiceImpl().getConsultingRecord(liveGetConsultingRecordRequest);
|
|
liveGetConsultingRecordResponseList = new LiveChatRoomServiceImpl().getConsultingRecord(liveGetConsultingRecordRequest);
|
|
if (liveGetConsultingRecordResponseList != null) {
|
|
if (liveGetConsultingRecordResponseList != null) {
|
|
//to do something ......
|
|
//to do something ......
|
|
- System.out.println("测试查询咨询提问记录成功{}");
|
|
|
|
- System.out.println(JSON.toJSONString(liveGetConsultingRecordResponseList));
|
|
|
|
}
|
|
}
|
|
} catch (PloyvSdkException e) {
|
|
} catch (PloyvSdkException e) {
|
|
//参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
|
|
//参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
|
|
@@ -336,7 +330,6 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
if (liveListChannelVideoLibraryResponse != null) {
|
|
if (liveListChannelVideoLibraryResponse != null) {
|
|
if(Validator.isNotEmpty(liveListChannelVideoLibraryResponse.getContents())){
|
|
if(Validator.isNotEmpty(liveListChannelVideoLibraryResponse.getContents())){
|
|
if(liveListChannelVideoLibraryResponse.getContents().size()>0){
|
|
if(liveListChannelVideoLibraryResponse.getContents().size()>0){
|
|
- System.out.println(JSON.toJSONString(liveListChannelVideoLibraryResponse.getContents()));
|
|
|
|
return liveListChannelVideoLibraryResponse.getContents().get(0);
|
|
return liveListChannelVideoLibraryResponse.getContents().get(0);
|
|
}
|
|
}
|
|
}
|
|
}
|