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

@@ -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'] ?? ''));
if ($strPlayVisibleIntro === '') {
$strPlayVisibleIntro = '当前页围绕《' . (string)($arrVideo['v_name'] ?? '当前内容') . '》' . $strCurrentEpisodeName . '整理在线播放入口,并补充剧情与观看线索,方便直接续看。';
@@ -104,7 +114,7 @@
<meta name="robots" content="noindex,follow">
{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}
@@ -130,7 +140,7 @@
{default /}
<meta property="og:type" content="video.movie" />
{/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:site_name" content="{$DomainModel->d_name}">
<meta property="og:video:type" content="video/m3u8">
@@ -189,7 +199,7 @@
"description": "{if !empty($arrVideo.v_description)}{$arrVideo.v_description|raw}{else/}暂无简介{/if}",
"thumbnailUrl": "{$arrVideo.v_pic|raw}",
"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)}
"inLanguage": [