fix(videoGpt1): restore detail and play url chain
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user