wuyanan

ref |> 修复点击文字直播进入直播详情提示内容不存在问题

... ... @@ -102,9 +102,10 @@ export struct DetailPlayLiveCommon {
}
const detailData = data[0];
///直播方式 0 视频直播 1 文字直播
const liveWay = detailData.liveInfo?.liveWay as number;
// 人民号类型单独获取直播地址
if (detailData.rmhPlatform === 1 && detailData.liveInfo?.liveState === 'running') {
if (detailData.rmhPlatform === 1 && detailData.liveInfo?.liveState === 'running' && liveWay == 0) {
const vliveId = detailData.liveInfo.vlive[0].vliveId as string;
const pullStreamAddressData = await this.liveViewModel.getLiveRoomPullAddress(vliveId) as GetPullAddressBean;
... ... @@ -135,13 +136,14 @@ export struct DetailPlayLiveCommon {
publishCommentModel.commentContent = '';
this.liveStyle = detailData.liveInfo?.liveStyle;
if (detailData.liveInfo?.liveState === 'end') {
if (detailData.liveInfo?.liveState === 'end' && liveWay == 0) {
this.playUrl = detailData.liveInfo.vlive[0].replayUri;
}
resolve();
})
.catch(() => {
.catch((error:Error) => {
Logger.debug(TAG + "error",error.message,error.name)
this.isHideLoading = true;
ToastUtils.shortToast('内容不存在');
router.back();
... ...
... ... @@ -79,9 +79,10 @@ export class LiveDetailPageLogic {
// 只有直播中的才会有垫片
if(this.liveState === 'running'){
if (this.contentDetailData.liveInfo.vlive.count > 0) {
this.showPad = this.contentDetailData.liveInfo.vlive[index].showPad
}
}
}
... ...