|
|
@@ -49,6 +49,7 @@ import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoReque
|
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
|
|
|
import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogRequest;
|
|
|
import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogResponse;
|
|
|
+import net.polyv.live.v1.entity.chat.LiveGetBannedListRequest;
|
|
|
import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordRequest;
|
|
|
import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordResponse;
|
|
|
import net.polyv.live.v1.service.channel.impl.LiveChannelOperateServiceImpl;
|
|
|
@@ -262,6 +263,12 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 保利威获取提问列表
|
|
|
+ * @param bo
|
|
|
+ * @throws IOException
|
|
|
+ * @throws NoSuchAlgorithmException
|
|
|
+ */
|
|
|
@Override
|
|
|
public void GetConsultingRecord(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException {
|
|
|
LiveGetConsultingRecordRequest liveGetConsultingRecordRequest = new LiveGetConsultingRecordRequest();
|
|
|
@@ -284,4 +291,25 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
|
throw e;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void GetBannedList(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException {
|
|
|
+ LiveGetBannedListRequest liveGetBannedListRequest = new LiveGetBannedListRequest();
|
|
|
+ List<String> liveGetBannedListResponseList = null;
|
|
|
+ try {
|
|
|
+ liveGetBannedListRequest.setChannelId(bo.getChannelId())
|
|
|
+ .setType(LiveConstant.BannedType.IP.getType());
|
|
|
+ liveGetBannedListResponseList = new LiveChatRoomServiceImpl().getBannedList(liveGetBannedListRequest);
|
|
|
+ if (liveGetBannedListResponseList != null) {
|
|
|
+ //to do something ......
|
|
|
+
|
|
|
+ }
|
|
|
+ } catch (PloyvSdkException e) {
|
|
|
+ //参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
|
|
|
+ // 异常返回做B端异常的业务逻辑,记录log 或者 上报到ETL 或者回滚事务
|
|
|
+ throw e;
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw e;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|