This commit is contained in:
make
2025-05-03 12:48:49 +08:00
parent 0cd2fdcdfe
commit d17b982cd0
14 changed files with 422 additions and 45 deletions

View File

@@ -22,6 +22,7 @@ class Site extends TagLib
'vciurl' => ['attr' => 'class', 'close' => 0],
'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0],
'vrlurl' => ['attr' => 'category,class,sort_type,page', 'close' => 0],
'forgelist' => ['attr' => 'count,diff_key,cache_life,d_key,d_val', 'close' => 1],
@@ -91,6 +92,34 @@ EOD;
return $strParse;
}
/**
* 视频排行榜列表 URL生成器
*
* @param array $n_id
* @return string
*/
public function tagVRLUrl($tag)
{
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
$strClass = isset($tag['class']) ? $tag['class'] : 'all';
$strSortType = isset($tag['sort_type']) ? $tag['sort_type'] : 'all';
$intPage = isset($tag['page']) ? $tag['page'] : 1;
$strCategory = $this->customBuildVar($strCategory);
$strClass = $this->customBuildVar($strClass);
$strSortType = $this->customBuildVar($strSortType);
$intPage = $this->customBuildVar($intPage);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strClass},{$strSortType},{$intPage});
echo \$strUrl;
?>
EOD;
return $strParse;
}
/**
* 内容替换