debug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 内容替换
|
||||
|
||||
Reference in New Issue
Block a user