fix(videoGpt1): restore detail and play url chain

This commit is contained in:
root
2026-04-17 13:01:51 +08:00
parent fc61444993
commit dd3cbf09cc
16 changed files with 226 additions and 104 deletions

View File

@@ -1,4 +1,10 @@
<article class="{$TpStyle.dom_prefix}-d1-wrap">
{php}
$strDetailPlaySlug = trim((string)($arrVideo['v_name_en'] ?? ''));
if ($strDetailPlaySlug === '') {
$strDetailPlaySlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
{// 顶部基本信息 }
<header class="{$TpStyle.dom_prefix}-d1-hd">
@@ -42,14 +48,17 @@
<?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?>
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<li>
<a class="{if $keyLine == $Request.route.intPlayIndex}active{/if}"
href='{site:vpurl
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$keyLine"
/}'
href="{$strEpisodePlayUrl}"
m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name}
</a>

View File

@@ -1,4 +1,10 @@
<main class="{$TpStyle.dom_prefix}-d2-page">
{php}
$strDetailPlaySlug = trim((string)($arrVideo['v_name_en'] ?? ''));
if ($strDetailPlaySlug === '') {
$strDetailPlaySlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
{// 顶部大横图 }
<section class="{$TpStyle.dom_prefix}-d2-hero">
@@ -45,8 +51,16 @@
<?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?>
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<li>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$keyLine" /}'
<a href="{$strEpisodePlayUrl}"
class="{if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name}

View File

@@ -1,4 +1,10 @@
<article class="{$TpStyle.dom_prefix}-d3-page">
{php}
$strDetailPlaySlug = trim((string)($arrVideo['v_name_en'] ?? ''));
if ($strDetailPlaySlug === '') {
$strDetailPlaySlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<section class="{$TpStyle.dom_prefix}-d3-top">
<div class="{$TpStyle.dom_prefix}-d3-picbox">
@@ -32,12 +38,20 @@
<?php $keyLineGroup = 0; ?>
{foreach $arrVideo.v_play_url as $strPlayGroupName=>$arrPlayUrlType }
<?php $keyLineGroup++ ;?>
<div class="{$TpStyle.dom_prefix}-d3-epbox {eq name='$keyLineGroup' value='1'}active{/eq}"
<div class="{$TpStyle.dom_prefix}-d3-epbox {eq name='$keyLineGroup' value='1'}active{/eq}"
id="d3_box_{$strPlayGroupName}">
<?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$keyLine" /}'
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<a href="{$strEpisodePlayUrl}"
class="{$TpStyle.dom_prefix}-d3-epitem {if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name}

View File

@@ -1,4 +1,10 @@
<section class="{$TpStyle.dom_prefix}-d4-page">
{php}
$strDetailPlaySlug = trim((string)($arrVideo['v_name_en'] ?? ''));
if ($strDetailPlaySlug === '') {
$strDetailPlaySlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<header class="{$TpStyle.dom_prefix}-d4-head">
<h1>{$arrVideo.v_name}</h1>
@@ -42,8 +48,16 @@
<?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?>
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<li>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$keyLine" /}'
<a href="{$strEpisodePlayUrl}"
class="{if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name}

View File

@@ -1,4 +1,10 @@
<article class="{$TpStyle.dom_prefix}-d5-page">
{php}
$strDetailPlaySlug = trim((string)($arrVideo['v_name_en'] ?? ''));
if ($strDetailPlaySlug === '') {
$strDetailPlaySlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<header class="{$TpStyle.dom_prefix}-d5-head">
<h1>{$arrVideo.v_name}</h1>
@@ -35,7 +41,15 @@
<?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$keyLine" /}'
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<a href="{$strEpisodePlayUrl}"
class="{$TpStyle.dom_prefix}-d5-epbtn {if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name}