fix(videoGpt1): restore detail and play url chain
This commit is contained in:
@@ -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">
|
||||
|
||||
{assign name="variant" value="$pageCfg.playline.variant"}
|
||||
@@ -12,7 +18,7 @@
|
||||
<ul class="{$TpStyle.dom_prefix}-pl-grid">
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
{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}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -24,7 +30,7 @@
|
||||
<h4>{video:getlinename code="$line" encode="false"/}</h4>
|
||||
<ol>
|
||||
{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}
|
||||
</ol>
|
||||
</section>
|
||||
@@ -37,7 +43,7 @@
|
||||
<dt>{video:getlinename code="$line" encode="false"/}</dt>
|
||||
<dd>
|
||||
{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}
|
||||
</dd>
|
||||
{/foreach}
|
||||
@@ -49,7 +55,7 @@
|
||||
<strong>{video:getlinename code="$line" encode="false"/}</strong>
|
||||
<ul>
|
||||
{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}
|
||||
</ul>
|
||||
{/foreach}
|
||||
@@ -61,7 +67,7 @@
|
||||
<header>{video:getlinename code="$line" encode="false"/}</header>
|
||||
<div>
|
||||
{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}
|
||||
</div>
|
||||
</article>
|
||||
@@ -75,7 +81,7 @@
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<tr>
|
||||
<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>
|
||||
{/volist}
|
||||
{/foreach}
|
||||
@@ -87,7 +93,7 @@
|
||||
<nav>
|
||||
<b>{video:getlinename code="$line" encode="false"/}</b>
|
||||
{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}
|
||||
</nav>
|
||||
{/foreach}
|
||||
@@ -98,7 +104,7 @@
|
||||
<p>{video:getlinename code="$line" encode="false"/}:</p>
|
||||
<div>
|
||||
{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}
|
||||
</div>
|
||||
{/foreach}
|
||||
@@ -111,7 +117,7 @@
|
||||
{video:getlinename code="$line" encode="false"/}
|
||||
<ul>
|
||||
{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}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -123,7 +129,7 @@
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
<h5>{video:getlinename code="$line" encode="false"/}</h5>
|
||||
{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}
|
||||
{/foreach}
|
||||
|
||||
@@ -133,11 +139,11 @@
|
||||
<section>
|
||||
<h4>{video:getlinename code="$line" encode="false"/}</h4>
|
||||
{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}
|
||||
</section>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
{assign name="variant" value="$pageCfg.playline.variant"}
|
||||
@@ -14,7 +20,7 @@
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
<ul class="{$TpStyle.dom_prefix}-pl-list">
|
||||
{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}
|
||||
</ul>
|
||||
{/foreach}
|
||||
@@ -32,7 +38,7 @@
|
||||
<ul class="{$TpStyle.dom_prefix}-pl-episodes">
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
{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}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -45,7 +51,7 @@
|
||||
<dt>{video:getlinename code="$line" encode="false"/}</dt>
|
||||
<dd>
|
||||
{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}
|
||||
</dd>
|
||||
{/foreach}
|
||||
@@ -58,7 +64,7 @@
|
||||
<header>{video:getlinename code="$line" encode="false"/}</header>
|
||||
<div>
|
||||
{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}
|
||||
</div>
|
||||
</section>
|
||||
@@ -70,7 +76,7 @@
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
<tr><th>{video:getlinename code="$line" encode="false"/}</th><td>
|
||||
{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}
|
||||
</td></tr>
|
||||
{/foreach}
|
||||
@@ -87,7 +93,7 @@
|
||||
<section>
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
{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}
|
||||
{/foreach}
|
||||
</section>
|
||||
@@ -103,7 +109,7 @@
|
||||
<ol class="{$TpStyle.dom_prefix}-pl-episodes">
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
{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}
|
||||
{/foreach}
|
||||
</ol>
|
||||
@@ -114,7 +120,7 @@
|
||||
<p><b>{video:getlinename code="$line" encode="false"/}</b></p>
|
||||
<p>
|
||||
{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}
|
||||
</p>
|
||||
{/foreach}
|
||||
@@ -126,7 +132,7 @@
|
||||
<tr><td>{video:getlinename code="$line" encode="false"/}</td><td>
|
||||
<table>
|
||||
{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}
|
||||
</table>
|
||||
</td></tr>
|
||||
@@ -140,7 +146,7 @@
|
||||
<h3>{video:getlinename code="$line" encode="false"/}</h3>
|
||||
<p>
|
||||
{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}
|
||||
</p>
|
||||
</article>
|
||||
@@ -152,7 +158,7 @@
|
||||
<div class="{if $intLineIndex==0}active{/if}">
|
||||
<strong>{video:getlinename code="$line" encode="false"/}</strong>
|
||||
{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}
|
||||
</div>
|
||||
{php}$intLineIndex++;{/php}
|
||||
@@ -160,4 +166,4 @@
|
||||
{/if}
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
{assign name="variant" value="$pageCfg.playline.variant"}
|
||||
@@ -10,7 +16,7 @@
|
||||
<ol>
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<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}
|
||||
</a>
|
||||
</li>
|
||||
@@ -27,7 +33,7 @@
|
||||
<div>
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<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}
|
||||
</a>
|
||||
</p>
|
||||
@@ -43,7 +49,7 @@
|
||||
<dt>{video:getlinename code="$line" encode="false"/}</dt>
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<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}
|
||||
</a>
|
||||
</dd>
|
||||
@@ -58,7 +64,7 @@
|
||||
<p>
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<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}
|
||||
</a>
|
||||
</span>
|
||||
@@ -73,7 +79,7 @@
|
||||
<strong>{video:getlinename code="$line" encode="false"/}</strong>
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<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}
|
||||
</a>
|
||||
</div>
|
||||
@@ -89,7 +95,7 @@
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<li>
|
||||
<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}
|
||||
</a>
|
||||
</p>
|
||||
@@ -106,7 +112,7 @@
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<div>
|
||||
<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}
|
||||
</a>
|
||||
</div>
|
||||
@@ -122,7 +128,7 @@
|
||||
<p>
|
||||
本线路提供以下资源:
|
||||
{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}
|
||||
</a>
|
||||
{/volist}
|
||||
@@ -137,7 +143,7 @@
|
||||
{volist name="list" id="ep" key="i"}
|
||||
<p>
|
||||
第 {$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}
|
||||
</a>
|
||||
</p>
|
||||
@@ -149,7 +155,7 @@
|
||||
{foreach $arrVideo.v_play_url as $line=>$list}
|
||||
<h5>{video:getlinename code="$line" encode="false"/}</h5>
|
||||
{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}
|
||||
</a>
|
||||
{/volist}
|
||||
@@ -161,7 +167,7 @@
|
||||
<section>
|
||||
<strong>{video:getlinename code="$line" encode="false"/} : </strong>
|
||||
{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}
|
||||
</a>
|
||||
{/volist}
|
||||
@@ -170,4 +176,4 @@
|
||||
{/if}
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user