debug
This commit is contained in:
@@ -20,6 +20,10 @@ class Site extends TagLib
|
||||
'grm' => ['attr' => 'domain,code,line,diff,start,end,index,type', 'close' => 0],
|
||||
'replace' => ['attr' => 'code,diff', 'close' => 0],
|
||||
|
||||
'vciurl' => ['attr' => 'class', 'close' => 0],
|
||||
'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0],
|
||||
|
||||
|
||||
'forgelist' => ['attr' => 'count,diff_key,cache_life,d_key,d_val', 'close' => 1],
|
||||
'helper' => ['attr' => 'func', 'close' => 0],
|
||||
'getval' => ['attr' => 'code', 'close' => 0],
|
||||
@@ -34,6 +38,60 @@ class Site extends TagLib
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频分类 首页 URL生成器
|
||||
*
|
||||
* @param array
|
||||
* @return string
|
||||
*/
|
||||
public function tagVCIUrl($tag)
|
||||
{
|
||||
$strClass = $tag['class'];
|
||||
$strClass = $this->customBuildVar($strClass);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strClass});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频分类列表 URL生成器
|
||||
*
|
||||
* @param array $n_id
|
||||
* @return string '/vodtype-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
*/
|
||||
public function tagVCLUrl($tag)
|
||||
{
|
||||
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
|
||||
$strClass = isset($tag['class']) ? $tag['class'] : 'all';
|
||||
$strArea = isset($tag['area']) ? $tag['area'] : 'all';
|
||||
$strLang = isset($tag['lang']) ? $tag['lang'] : 'all';
|
||||
$strYear = isset($tag['year']) ? $tag['year'] : 'all';
|
||||
$strOrder = isset($tag['order']) ? $tag['order'] : '';
|
||||
$intPage = isset($tag['page']) ? $tag['page'] : 1;
|
||||
|
||||
$strCategory = $this->customBuildVar($strCategory);
|
||||
$strClass = $this->customBuildVar($strClass);
|
||||
$strArea = $this->customBuildVar($strArea);
|
||||
$strLang = $this->customBuildVar($strLang);
|
||||
$strYear = $this->customBuildVar($strYear);
|
||||
$strOrder = $this->customBuildVar($strOrder);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strClass},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 内容替换
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user