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"> <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"> <header class="{$TpStyle.dom_prefix}-d1-hd">
@@ -42,14 +48,17 @@
<?php $keyLine = 0; ?> <?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?> <?php $keyLine++ ;?>
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<li> <li>
<a class="{if $keyLine == $Request.route.intPlayIndex}active{/if}" <a class="{if $keyLine == $Request.route.intPlayIndex}active{/if}"
href='{site:vpurl href="{$strEpisodePlayUrl}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$keyLine"
/}'
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}
</a> </a>

View File

@@ -1,4 +1,10 @@
<main class="{$TpStyle.dom_prefix}-d2-page"> <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"> <section class="{$TpStyle.dom_prefix}-d2-hero">
@@ -45,8 +51,16 @@
<?php $keyLine = 0; ?> <?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?> <?php $keyLine++ ;?>
{php}
$strEpisodePlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailPlaySlug,
(string)$strPlayGroupName,
(int)$keyLine
);
{/php}
<li> <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}" class="{if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,4 +1,10 @@
<article class="{$TpStyle.dom_prefix}-d3-page"> <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"> <section class="{$TpStyle.dom_prefix}-d3-top">
<div class="{$TpStyle.dom_prefix}-d3-picbox"> <div class="{$TpStyle.dom_prefix}-d3-picbox">
@@ -37,7 +43,15 @@
<?php $keyLine = 0; ?> <?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?> <?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}" class="{$TpStyle.dom_prefix}-d3-epitem {if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

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

View File

@@ -1,4 +1,10 @@
<article class="{$TpStyle.dom_prefix}-d5-page"> <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"> <header class="{$TpStyle.dom_prefix}-d5-head">
<h1>{$arrVideo.v_name}</h1> <h1>{$arrVideo.v_name}</h1>
@@ -35,7 +41,15 @@
<?php $keyLine = 0; ?> <?php $keyLine = 0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $keyLine++ ;?> <?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}" class="{$TpStyle.dom_prefix}-d5-epbtn {if $keyLine == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,111 +1,123 @@
{// ===================== Action Variants ===================== } {// ===================== Action Variants ===================== }
{php}
$strDetailActionSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strDetailActionSlug === '') {
$strDetailActionSlug = (string)($arrVideo['v_id'] ?? '');
}
$strDetailDefaultPlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailActionSlug,
'default',
1
);
{/php}
{if $variant == 0} {if $variant == 0}
<div class="{$TpStyle.dom_prefix}-dm-action v0"> <div class="{$TpStyle.dom_prefix}-dm-action v0">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即播放</a> <a href="{$strDetailDefaultPlayUrl}">立即播放</a>
</div> </div>
{elseif $variant == 1} {elseif $variant == 1}
<div class="{$TpStyle.dom_prefix}-dm-action v1"> <div class="{$TpStyle.dom_prefix}-dm-action v1">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线播放</a> <a href="{$strDetailDefaultPlayUrl}">在线播放</a>
<span>无需安装</span> <span>无需安装</span>
</div> </div>
{elseif $variant == 2} {elseif $variant == 2}
<nav class="{$TpStyle.dom_prefix}-dm-action v2"> <nav class="{$TpStyle.dom_prefix}-dm-action v2">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>▶ 播放</a> <a href="{$strDetailDefaultPlayUrl}">▶ 播放</a>
<a href="#desc">剧情</a> <a href="#desc">剧情</a>
</nav> </nav>
{elseif $variant == 3} {elseif $variant == 3}
<ul class="{$TpStyle.dom_prefix}-dm-action v3"> <ul class="{$TpStyle.dom_prefix}-dm-action v3">
<li><a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>高清</a></li> <li><a href="{$strDetailDefaultPlayUrl}">高清</a></li>
<li><a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>免费</a></li> <li><a href="{$strDetailDefaultPlayUrl}">免费</a></li>
</ul> </ul>
{elseif $variant == 4} {elseif $variant == 4}
<div class="{$TpStyle.dom_prefix}-dm-action v4"> <div class="{$TpStyle.dom_prefix}-dm-action v4">
<button onclick="location.href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'">立即观看</button> <button onclick="location.href='{$strDetailDefaultPlayUrl}'">立即观看</button>
</div> </div>
{elseif $variant == 5} {elseif $variant == 5}
<div class="{$TpStyle.dom_prefix}-dm-action v5"> <div class="{$TpStyle.dom_prefix}-dm-action v5">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>{$arrVideo.v_name} 在线观看</a> <a href="{$strDetailDefaultPlayUrl}">{$arrVideo.v_name} 在线观看</a>
</div> </div>
{elseif $variant == 6} {elseif $variant == 6}
<footer class="{$TpStyle.dom_prefix}-dm-action v6"> <footer class="{$TpStyle.dom_prefix}-dm-action v6">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>开始播放</a> <a href="{$strDetailDefaultPlayUrl}">开始播放</a>
</footer> </footer>
{elseif $variant == 7} {elseif $variant == 7}
<section class="{$TpStyle.dom_prefix}-dm-action v7"> <section class="{$TpStyle.dom_prefix}-dm-action v7">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>免费观看</a> <a href="{$strDetailDefaultPlayUrl}">免费观看</a>
<small>高清资源</small> <small>高清资源</small>
</section> </section>
{elseif $variant == 8} {elseif $variant == 8}
<div class="{$TpStyle.dom_prefix}-dm-action v8"> <div class="{$TpStyle.dom_prefix}-dm-action v8">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放正片</a> <a href="{$strDetailDefaultPlayUrl}">播放正片</a>
</div> </div>
{elseif $variant == 9} {elseif $variant == 9}
<div class="{$TpStyle.dom_prefix}-dm-action v9"> <div class="{$TpStyle.dom_prefix}-dm-action v9">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即观看 {$arrVideo.v_name}</a> <a href="{$strDetailDefaultPlayUrl}">立即观看 {$arrVideo.v_name}</a>
</div> </div>
{elseif $variant == 10} {elseif $variant == 10}
<div class="{$TpStyle.dom_prefix}-dm-action v10"> <div class="{$TpStyle.dom_prefix}-dm-action v10">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线播放 · 高清</a> <a href="{$strDetailDefaultPlayUrl}">在线播放 · 高清</a>
</div> </div>
{elseif $variant == 11} {elseif $variant == 11}
<div class="{$TpStyle.dom_prefix}-dm-action v11"> <div class="{$TpStyle.dom_prefix}-dm-action v11">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>点击播放</a> <a href="{$strDetailDefaultPlayUrl}">点击播放</a>
<span>支持多线路</span> <span>支持多线路</span>
</div> </div>
{elseif $variant == 12} {elseif $variant == 12}
<nav class="{$TpStyle.dom_prefix}-dm-action v12"> <nav class="{$TpStyle.dom_prefix}-dm-action v12">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放</a> <a href="{$strDetailDefaultPlayUrl}">播放</a>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>下载</a> <a href="{$strDetailDefaultPlayUrl}">下载</a>
</nav> </nav>
{elseif $variant == 13} {elseif $variant == 13}
<div class="{$TpStyle.dom_prefix}-dm-action v13"> <div class="{$TpStyle.dom_prefix}-dm-action v13">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'></a> <a href="{$strDetailDefaultPlayUrl}"></a>
</div> </div>
{elseif $variant == 14} {elseif $variant == 14}
<div class="{$TpStyle.dom_prefix}-dm-action v14"> <div class="{$TpStyle.dom_prefix}-dm-action v14">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>{$arrVideo.v_name} 免费看</a> <a href="{$strDetailDefaultPlayUrl}">{$arrVideo.v_name} 免费看</a>
</div> </div>
{elseif $variant == 15} {elseif $variant == 15}
<aside class="{$TpStyle.dom_prefix}-dm-action v15"> <aside class="{$TpStyle.dom_prefix}-dm-action v15">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即播放</a> <a href="{$strDetailDefaultPlayUrl}">立即播放</a>
</aside> </aside>
{elseif $variant == 16} {elseif $variant == 16}
<div class="{$TpStyle.dom_prefix}-dm-action v16" <div class="{$TpStyle.dom_prefix}-dm-action v16"
data-action="play"> data-action="play">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放影片</a> <a href="{$strDetailDefaultPlayUrl}">播放影片</a>
</div> </div>
{elseif $variant == 17} {elseif $variant == 17}
<div class="{$TpStyle.dom_prefix}-dm-action v17"> <div class="{$TpStyle.dom_prefix}-dm-action v17">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>高清播放</a> <a href="{$strDetailDefaultPlayUrl}">高清播放</a>
<em>无需登录</em> <em>无需登录</em>
</div> </div>
{elseif $variant == 18} {elseif $variant == 18}
<section class="{$TpStyle.dom_prefix}-dm-action v18"> <section class="{$TpStyle.dom_prefix}-dm-action v18">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线观看</a> <a href="{$strDetailDefaultPlayUrl}">在线观看</a>
</section> </section>
{elseif $variant == 19} {elseif $variant == 19}
<footer class="{$TpStyle.dom_prefix}-dm-action v19"> <footer class="{$TpStyle.dom_prefix}-dm-action v19">
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>马上播放</a> <a href="{$strDetailDefaultPlayUrl}">马上播放</a>
</footer> </footer>
{/if} {/if}

View File

@@ -1,5 +1,17 @@
{// ===================== Cover Variants ===================== } {// ===================== Cover Variants ===================== }
{video:imgalt video="$arrVideo" slot="detail_cover" item_type="poster" export_name="strAlt" /} {video:imgalt video="$arrVideo" slot="detail_cover" item_type="poster" export_name="strAlt" /}
{php}
$strDetailCoverSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strDetailCoverSlug === '') {
$strDetailCoverSlug = (string)($arrVideo['v_id'] ?? '');
}
$strDetailCoverPlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)($arrVideo['v_id'] ?? 0),
$strDetailCoverSlug,
'default',
1
);
{/php}
{if $variant == 0} {if $variant == 0}
<div class="{$TpStyle.dom_prefix}-dm-cover v0"> <div class="{$TpStyle.dom_prefix}-dm-cover v0">
@@ -20,7 +32,7 @@
{elseif $variant == 2} {elseif $variant == 2}
<a class="{$TpStyle.dom_prefix}-dm-cover v2" <a class="{$TpStyle.dom_prefix}-dm-cover v2"
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'> href="{$strDetailCoverPlayUrl}">
<img class="{$TpStyle.dom_prefix}-dm-cover-img" <img class="{$TpStyle.dom_prefix}-dm-cover-img"
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"
alt="{$strAlt}"> alt="{$strAlt}">
@@ -89,7 +101,7 @@
{elseif $variant == 11} {elseif $variant == 11}
<a class="{$TpStyle.dom_prefix}-dm-cover v11" <a class="{$TpStyle.dom_prefix}-dm-cover v11"
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'> href="{$strDetailCoverPlayUrl}">
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}" <img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"> src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
</a> </a>

View File

@@ -1,3 +1,9 @@
{php}
$strPlayModuleSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlayModuleSlug === '') {
$strPlayModuleSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<article class="{$TpStyle.dom_prefix}-p1-wrap"> <article class="{$TpStyle.dom_prefix}-p1-wrap">
{// 顶部区域:封面 + 简介 } {// 顶部区域:封面 + 简介 }
@@ -56,12 +62,7 @@
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $epIndex++; ?> <?php $epIndex++; ?>
<li> <li>
<a href='{site:vpurl <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlayModuleSlug, (string)$strPlayGroupName, (int)$epIndex)}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$epIndex"
/}'
class=" class="
{if $epIndex == $Request.route.intPlayIndex}active{/if} {if $epIndex == $Request.route.intPlayIndex}active{/if}
{$TpStyle.dom_prefix}-p1-ep {$TpStyle.dom_prefix}-p1-ep

View File

@@ -1,3 +1,9 @@
{php}
$strPlayModuleSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlayModuleSlug === '') {
$strPlayModuleSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<article class="{$TpStyle.dom_prefix}-p2-shell"> <article class="{$TpStyle.dom_prefix}-p2-shell">
{// 全宽播放器 } {// 全宽播放器 }
@@ -42,12 +48,7 @@
<?php $epIndex=0; ?> <?php $epIndex=0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $epIndex++; ?> <?php $epIndex++; ?>
<a href='{site:vpurl <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlayModuleSlug, (string)$strPlayGroupName, (int)$epIndex)}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$epIndex"
/}'
class="{$TpStyle.dom_prefix}-p2-epbtn {if $epIndex == $Request.route.intPlayIndex}active{/if}" class="{$TpStyle.dom_prefix}-p2-epbtn {if $epIndex == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,3 +1,9 @@
{php}
$strPlayModuleSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlayModuleSlug === '') {
$strPlayModuleSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<main class="{$TpStyle.dom_prefix}-p3-layout"> <main class="{$TpStyle.dom_prefix}-p3-layout">
<section class="{$TpStyle.dom_prefix}-p3-main"> <section class="{$TpStyle.dom_prefix}-p3-main">
@@ -41,12 +47,7 @@
<?php $epIndex=0; ?> <?php $epIndex=0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $epIndex++; ?> <?php $epIndex++; ?>
<a href='{site:vpurl <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlayModuleSlug, (string)$strPlayGroupName, (int)$epIndex)}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$epIndex"
/}'
class="{$TpStyle.dom_prefix}-p3-ep {if $epIndex == $Request.route.intPlayIndex}active{/if}" class="{$TpStyle.dom_prefix}-p3-ep {if $epIndex == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,3 +1,9 @@
{php}
$strPlayModuleSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlayModuleSlug === '') {
$strPlayModuleSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<section class="{$TpStyle.dom_prefix}-p4-page"> <section class="{$TpStyle.dom_prefix}-p4-page">
<div class="{$TpStyle.dom_prefix}-p4-top"> <div class="{$TpStyle.dom_prefix}-p4-top">
@@ -34,12 +40,7 @@
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $epIndex++; ?> <?php $epIndex++; ?>
<li> <li>
<a href='{site:vpurl <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlayModuleSlug, (string)$strPlayGroupName, (int)$epIndex)}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$epIndex"
/}'
class="{if $epIndex == $Request.route.intPlayIndex}active{/if}" class="{if $epIndex == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,3 +1,9 @@
{php}
$strPlayModuleSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlayModuleSlug === '') {
$strPlayModuleSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<article class="{$TpStyle.dom_prefix}-p5-wrap"> <article class="{$TpStyle.dom_prefix}-p5-wrap">
{// 封面 + 播放器组合卡片 } {// 封面 + 播放器组合卡片 }
@@ -40,12 +46,7 @@
<?php $epIndex=0; ?> <?php $epIndex=0; ?>
{volist name='$arrPlayUrlType' id='arrPlayUrl'} {volist name='$arrPlayUrlType' id='arrPlayUrl'}
<?php $epIndex++; ?> <?php $epIndex++; ?>
<a href='{site:vpurl <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlayModuleSlug, (string)$strPlayGroupName, (int)$epIndex)}"
v_id="$arrVideo.v_id"
v_py="$arrVideo.v_name_en"
play_type="$strPlayGroupName"
play_index="$epIndex"
/}'
class="{$TpStyle.dom_prefix}-p5-epbtn {if $epIndex == $Request.route.intPlayIndex}active{/if}" class="{$TpStyle.dom_prefix}-p5-epbtn {if $epIndex == $Request.route.intPlayIndex}active{/if}"
m3u8="{$arrPlayUrl.url}"> m3u8="{$arrPlayUrl.url}">
{$arrPlayUrl.name} {$arrPlayUrl.name}

View File

@@ -1,3 +1,9 @@
{php}
$strPlaylineSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlaylineSlug === '') {
$strPlaylineSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-a"> <section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-a">
{assign name="variant" value="$pageCfg.playline.variant"} {assign name="variant" value="$pageCfg.playline.variant"}
@@ -12,7 +18,7 @@
<ul class="{$TpStyle.dom_prefix}-pl-grid"> <ul class="{$TpStyle.dom_prefix}-pl-grid">
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
{/foreach} {/foreach}
</ul> </ul>
@@ -24,7 +30,7 @@
<h4>{video:getlinename code="$line" encode="false"/}</h4> <h4>{video:getlinename code="$line" encode="false"/}</h4>
<ol> <ol>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
</ol> </ol>
</section> </section>
@@ -37,7 +43,7 @@
<dt>{video:getlinename code="$line" encode="false"/}</dt> <dt>{video:getlinename code="$line" encode="false"/}</dt>
<dd> <dd>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</dd> </dd>
{/foreach} {/foreach}
@@ -49,7 +55,7 @@
<strong>{video:getlinename code="$line" encode="false"/}</strong> <strong>{video:getlinename code="$line" encode="false"/}</strong>
<ul> <ul>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
</ul> </ul>
{/foreach} {/foreach}
@@ -61,7 +67,7 @@
<header>{video:getlinename code="$line" encode="false"/}</header> <header>{video:getlinename code="$line" encode="false"/}</header>
<div> <div>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</div> </div>
</article> </article>
@@ -75,7 +81,7 @@
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<tr> <tr>
<td>{$i}</td> <td>{$i}</td>
<td><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></td> <td><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></td>
</tr> </tr>
{/volist} {/volist}
{/foreach} {/foreach}
@@ -87,7 +93,7 @@
<nav> <nav>
<b>{video:getlinename code="$line" encode="false"/}</b> <b>{video:getlinename code="$line" encode="false"/}</b>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</nav> </nav>
{/foreach} {/foreach}
@@ -98,7 +104,7 @@
<p>{video:getlinename code="$line" encode="false"/}</p> <p>{video:getlinename code="$line" encode="false"/}</p>
<div> <div>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<span><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></span> <span><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></span>
{/volist} {/volist}
</div> </div>
{/foreach} {/foreach}
@@ -111,7 +117,7 @@
{video:getlinename code="$line" encode="false"/} {video:getlinename code="$line" encode="false"/}
<ul> <ul>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
</ul> </ul>
</li> </li>
@@ -123,7 +129,7 @@
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
<h5>{video:getlinename code="$line" encode="false"/}</h5> <h5>{video:getlinename code="$line" encode="false"/}</h5>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
{/foreach} {/foreach}
@@ -133,7 +139,7 @@
<section> <section>
<h4>{video:getlinename code="$line" encode="false"/}</h4> <h4>{video:getlinename code="$line" encode="false"/}</h4>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</section> </section>
{/foreach} {/foreach}

View File

@@ -1,3 +1,9 @@
{php}
$strPlaylineSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlaylineSlug === '') {
$strPlaylineSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-b"> <section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-b">
{assign name="variant" value="$pageCfg.playline.variant"} {assign name="variant" value="$pageCfg.playline.variant"}
@@ -14,7 +20,7 @@
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
<ul class="{$TpStyle.dom_prefix}-pl-list"> <ul class="{$TpStyle.dom_prefix}-pl-list">
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
</ul> </ul>
{/foreach} {/foreach}
@@ -32,7 +38,7 @@
<ul class="{$TpStyle.dom_prefix}-pl-episodes"> <ul class="{$TpStyle.dom_prefix}-pl-episodes">
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
{/foreach} {/foreach}
</ul> </ul>
@@ -45,7 +51,7 @@
<dt>{video:getlinename code="$line" encode="false"/}</dt> <dt>{video:getlinename code="$line" encode="false"/}</dt>
<dd> <dd>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</dd> </dd>
{/foreach} {/foreach}
@@ -58,7 +64,7 @@
<header>{video:getlinename code="$line" encode="false"/}</header> <header>{video:getlinename code="$line" encode="false"/}</header>
<div> <div>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<span><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></span> <span><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></span>
{/volist} {/volist}
</div> </div>
</section> </section>
@@ -70,7 +76,7 @@
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
<tr><th>{video:getlinename code="$line" encode="false"/}</th><td> <tr><th>{video:getlinename code="$line" encode="false"/}</th><td>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</td></tr> </td></tr>
{/foreach} {/foreach}
@@ -87,7 +93,7 @@
<section> <section>
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
{/foreach} {/foreach}
</section> </section>
@@ -103,7 +109,7 @@
<ol class="{$TpStyle.dom_prefix}-pl-episodes"> <ol class="{$TpStyle.dom_prefix}-pl-episodes">
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></li> <li><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></li>
{/volist} {/volist}
{/foreach} {/foreach}
</ol> </ol>
@@ -114,7 +120,7 @@
<p><b>{video:getlinename code="$line" encode="false"/}</b></p> <p><b>{video:getlinename code="$line" encode="false"/}</b></p>
<p> <p>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</p> </p>
{/foreach} {/foreach}
@@ -126,7 +132,7 @@
<tr><td>{video:getlinename code="$line" encode="false"/}</td><td> <tr><td>{video:getlinename code="$line" encode="false"/}</td><td>
<table> <table>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<tr><td><a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a></td></tr> <tr><td><a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a></td></tr>
{/volist} {/volist}
</table> </table>
</td></tr> </td></tr>
@@ -140,7 +146,7 @@
<h3>{video:getlinename code="$line" encode="false"/}</h3> <h3>{video:getlinename code="$line" encode="false"/}</h3>
<p> <p>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</p> </p>
</article> </article>
@@ -152,7 +158,7 @@
<div class="{if $intLineIndex==0}active{/if}"> <div class="{if $intLineIndex==0}active{/if}">
<strong>{video:getlinename code="$line" encode="false"/}</strong> <strong>{video:getlinename code="$line" encode="false"/}</strong>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}">{$ep.name}</a> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">{$ep.name}</a>
{/volist} {/volist}
</div> </div>
{php}$intLineIndex++;{/php} {php}$intLineIndex++;{/php}

View File

@@ -1,3 +1,9 @@
{php}
$strPlaylineSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
if ($strPlaylineSlug === '') {
$strPlaylineSlug = (string)($arrVideo['v_id'] ?? '');
}
{/php}
<section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-c"> <section class="{$TpStyle.dom_prefix}-pl {$TpStyle.dom_prefix}-pl-c">
{assign name="variant" value="$pageCfg.playline.variant"} {assign name="variant" value="$pageCfg.playline.variant"}
@@ -10,7 +16,7 @@
<ol> <ol>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li> <li>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</li> </li>
@@ -27,7 +33,7 @@
<div> <div>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<p> <p>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</p> </p>
@@ -43,7 +49,7 @@
<dt>{video:getlinename code="$line" encode="false"/}</dt> <dt>{video:getlinename code="$line" encode="false"/}</dt>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<dd> <dd>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</dd> </dd>
@@ -58,7 +64,7 @@
<p> <p>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<span> <span>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</span> </span>
@@ -73,7 +79,7 @@
<strong>{video:getlinename code="$line" encode="false"/}</strong> <strong>{video:getlinename code="$line" encode="false"/}</strong>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<div> <div>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</div> </div>
@@ -89,7 +95,7 @@
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<li> <li>
<p> <p>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</p> </p>
@@ -106,7 +112,7 @@
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<div> <div>
<time>{$i}</time> <time>{$i}</time>
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</div> </div>
@@ -122,7 +128,7 @@
<p> <p>
本线路提供以下资源: 本线路提供以下资源:
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
{/volist} {/volist}
@@ -137,7 +143,7 @@
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<p> <p>
第 {$i} 集: 第 {$i} 集:
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
</p> </p>
@@ -149,7 +155,7 @@
{foreach $arrVideo.v_play_url as $line=>$list} {foreach $arrVideo.v_play_url as $line=>$list}
<h5>{video:getlinename code="$line" encode="false"/}</h5> <h5>{video:getlinename code="$line" encode="false"/}</h5>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
{/volist} {/volist}
@@ -161,7 +167,7 @@
<section> <section>
<strong>{video:getlinename code="$line" encode="false"/} : </strong> <strong>{video:getlinename code="$line" encode="false"/} : </strong>
{volist name="list" id="ep" key="i"} {volist name="list" id="ep" key="i"}
<a href="{site:vpurl v_id='$arrVideo.v_id' play_type='$line' play_index='$i'/}"> <a href="{:app('app\\services\\VideoService')->getVideoPlayUrl((int)$arrVideo['v_id'], $strPlaylineSlug, (string)$line, (int)$i)}">
{$ep.name} {$ep.name}
</a> </a>
{/volist} {/volist}

View File

@@ -58,6 +58,16 @@
); );
} }
$strPlayCanonicalUrl = '';
if ((int)($arrVideo['v_id'] ?? 0) > 0) {
$strPlayCanonicalUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
(int)$arrVideo['v_id'],
$strPlaySlug,
$strCurrentPlayType !== '' ? $strCurrentPlayType : 'default',
$intCurrentPlayIndex
);
}
$strPlayVisibleIntro = trim((string)($seoCopy['play_intro'] ?? '')); $strPlayVisibleIntro = trim((string)($seoCopy['play_intro'] ?? ''));
if ($strPlayVisibleIntro === '') { if ($strPlayVisibleIntro === '') {
$strPlayVisibleIntro = '当前页围绕《' . (string)($arrVideo['v_name'] ?? '当前内容') . '》' . $strCurrentEpisodeName . '整理在线播放入口,并补充剧情与观看线索,方便直接续看。'; $strPlayVisibleIntro = '当前页围绕《' . (string)($arrVideo['v_name'] ?? '当前内容') . '》' . $strCurrentEpisodeName . '整理在线播放入口,并补充剧情与观看线索,方便直接续看。';
@@ -104,7 +114,7 @@
<meta name="robots" content="noindex,follow"> <meta name="robots" content="noindex,follow">
{if $Request.route.intVId } {if $Request.route.intVId }
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" /}'> <link rel="canonical" href='https://{$DomainModel->d_domain}{$strPlayCanonicalUrl}'>
{/if} {/if}
@@ -130,7 +140,7 @@
{default /} {default /}
<meta property="og:type" content="video.movie" /> <meta property="og:type" content="video.movie" />
{/switch} {/switch}
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'> <meta property="og:url" content='https://{$DomainModel->d_domain}{$strPlayCanonicalUrl}'>
<meta property="og:image" content="https://{$DomainModel->d_domain}{$arrVideo.v_pic}"> <meta property="og:image" content="https://{$DomainModel->d_domain}{$arrVideo.v_pic}">
<meta property="og:site_name" content="{$DomainModel->d_name}"> <meta property="og:site_name" content="{$DomainModel->d_name}">
<meta property="og:video:type" content="video/m3u8"> <meta property="og:video:type" content="video/m3u8">
@@ -189,7 +199,7 @@
"description": "{if !empty($arrVideo.v_description)}{$arrVideo.v_description|raw}{else/}暂无简介{/if}", "description": "{if !empty($arrVideo.v_description)}{$arrVideo.v_description|raw}{else/}暂无简介{/if}",
"thumbnailUrl": "{$arrVideo.v_pic|raw}", "thumbnailUrl": "{$arrVideo.v_pic|raw}",
"uploadDate": "{:date('Y-m-d')}", "uploadDate": "{:date('Y-m-d')}",
"url": "https://{$DomainModel->d_domain}{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}" "url": "https://{$DomainModel->d_domain}{$strPlayCanonicalUrl}"
{if !empty($arrVideo.v_lang)},{/if} {if !empty($arrVideo.v_lang)},{/if}
{if !empty($arrVideo.v_lang)} {if !empty($arrVideo.v_lang)}
"inLanguage": [ "inLanguage": [