fix id-first deep links for videoGpt1 seo

This commit is contained in:
root
2026-04-15 16:06:43 +08:00
parent 7ece23688f
commit bd073c6795
5 changed files with 15 additions and 16 deletions

View File

@@ -82,7 +82,9 @@ class VideoService
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
if ($strTmpCode == 'videoGpt1') {
return $this->SiteContext->UrlBuilder->detail($strPinYin, $intVId);
// videoGpt1 runtime resolves detail data by v_id.
// Use id-first urls to avoid stale slug drift creating dead deep links.
return $this->SiteContext->UrlBuilder->detail('', $intVId);
} else {
$strKey = 'VIDEO_INFO_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
@@ -106,7 +108,7 @@ class VideoService
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
if ($strTmpCode == 'videoGpt1') {
return $this->SiteContext->UrlBuilder->detailForge($strPinYin, $intVId, $intVForgeId);
return $this->SiteContext->UrlBuilder->detailForge('', $intVId, $intVForgeId);
} else {
$strKey = 'FORGE_VIDEO_INFO_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
@@ -132,7 +134,7 @@ class VideoService
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
if ($strTmpCode == 'videoGpt1') {
return $this->SiteContext->UrlBuilder->play($strPinYin, $intVId, $strPlayType, $intPlayIndex);
return $this->SiteContext->UrlBuilder->play('', $intVId, $strPlayType, $intPlayIndex);
} else {
$strKey = 'VIDEO_PLAY_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [