Skip to content

Commit 5783973

Browse files
author
Taois
committed
feat:完成详情页push协议支持
1 parent e62e5c0 commit 5783973

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

dashboard/src/views/VideoDetail.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,14 @@ const selectEpisode = async (index) => {
13901390
currentActiveSite: currentActiveSiteInfo.value?.key,
13911391
originalSite: currentSiteInfo.value?.key
13921392
})
1393+
1394+
// 检测选集URL本身是否为push://协议
1395+
if (episodeUrl.startsWith('push://')) {
1396+
console.log('🚀🚀🚀 选集URL本身为push://协议,直接处理推送逻辑:', episodeUrl)
1397+
await handlePushProtocol(episodeUrl, routeName)
1398+
return
1399+
}
1400+
13931401
Message.info('正在解析播放地址...')
13941402
13951403
// 调用T4播放API进行解析
@@ -1403,9 +1411,9 @@ const selectEpisode = async (index) => {
14031411
const parseResult = await videoService.parseEpisodePlayUrl(currentActiveSiteInfo.value.key, parseParams)
14041412
console.log('选集播放解析结果:', parseResult)
14051413
1406-
// 检测是否为push://协议
1414+
// 检测T4播放API返回结果是否为push://协议
14071415
if (parseResult.url && parseResult.url.startsWith('push://')) {
1408-
console.log('🚀🚀🚀 检测到push://协议,开始处理推送逻辑:', parseResult.url)
1416+
console.log('🚀🚀🚀 T4播放API返回push://协议,开始处理推送逻辑:', parseResult.url)
14091417
await handlePushProtocol(parseResult.url, parseResult.flag)
14101418
return
14111419
}

0 commit comments

Comments
 (0)