Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wuyanan
2024-09-20 18:52:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d5ae804af3b034038a79d8e8f6189fcef5863d0c
d5ae804a
1 parent
f59c53a2
ref |> 修复点击文字直播进入直播详情提示内容不存在问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLiveCommon.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/viewModel/LiveDetailPageLogic.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLiveCommon.ets
View file @
d5ae804
...
...
@@ -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();
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/viewModel/LiveDetailPageLogic.ets
View file @
d5ae804
...
...
@@ -79,8 +79,9 @@ export class LiveDetailPageLogic {
// 只有直播中的才会有垫片
if(this.liveState === 'running'){
this.showPad = this.contentDetailData.liveInfo.vlive[index].showPad
if (this.contentDetailData.liveInfo.vlive.count > 0) {
this.showPad = this.contentDetailData.liveInfo.vlive[index].showPad
}
}
}
...
...
Please
register
or
login
to post a comment