debug
This commit is contained in:
@@ -20,9 +20,9 @@ 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],
|
||||
'vrlurl' => ['attr' => 'category,class,sort_type,page', 'close' => 0],
|
||||
'vciurl' => ['attr' => 'prent_category', 'close' => 0],
|
||||
'vclurl' => ['attr' => 'category,prent_category,area,lang,year,order,page', 'close' => 0],
|
||||
'vrlurl' => ['attr' => 'category,prent_category,sort_type,page', 'close' => 0],
|
||||
'vurl' => ['attr' => 'v_id,v_py', 'close' => 0],
|
||||
'vpurl' => ['attr' => 'v_id,v_py,play_type,play_index', 'close' => 0],
|
||||
'vsurl' => ['attr' => 'key', 'close' => 0],
|
||||
@@ -49,12 +49,12 @@ class Site extends TagLib
|
||||
*/
|
||||
public function tagVCIUrl($tag)
|
||||
{
|
||||
$strClass = $tag['class'];
|
||||
$strClass = $this->customBuildVar($strClass);
|
||||
$strPrentCategory = $tag['prent_category'];
|
||||
$strPrentCategory = $this->customBuildVar($strPrentCategory);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strClass});
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strPrentCategory});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -70,7 +70,7 @@ EOD;
|
||||
public function tagVCLUrl($tag)
|
||||
{
|
||||
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
|
||||
$strClass = isset($tag['class']) ? $tag['class'] : 'all';
|
||||
$strPrentCategory = isset($tag['prent_category']) ? $tag['prent_category'] : 'all';
|
||||
$strArea = isset($tag['area']) ? $tag['area'] : 'all';
|
||||
$strLang = isset($tag['lang']) ? $tag['lang'] : 'all';
|
||||
$strYear = isset($tag['year']) ? $tag['year'] : 'all';
|
||||
@@ -78,7 +78,7 @@ EOD;
|
||||
$intPage = isset($tag['page']) ? $tag['page'] : 1;
|
||||
|
||||
$strCategory = $this->customBuildVar($strCategory);
|
||||
$strClass = $this->customBuildVar($strClass);
|
||||
$strPrentCategory = $this->customBuildVar($strPrentCategory);
|
||||
$strArea = $this->customBuildVar($strArea);
|
||||
$strLang = $this->customBuildVar($strLang);
|
||||
$strYear = $this->customBuildVar($strYear);
|
||||
@@ -87,7 +87,7 @@ EOD;
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strClass},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage});
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strPrentCategory},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -102,19 +102,18 @@ EOD;
|
||||
*/
|
||||
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 = empty($tag['category']) ? 'all' : $tag['category'];
|
||||
$strPrentCategory = empty($tag['parent_category']) ? 'all' : $tag['parent_category'];
|
||||
$strSortType = empty($tag['sort_type']) ? 'all' : $tag['sort_type'];
|
||||
$intPage = empty($tag['page']) ? 1 : $tag['page'];
|
||||
$strCategory = $this->customBuildVar($strCategory);
|
||||
$strClass = $this->customBuildVar($strClass);
|
||||
$strPrentCategory = $this->customBuildVar($strPrentCategory);
|
||||
$strSortType = $this->customBuildVar($strSortType);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strClass},{$strSortType},{$intPage});
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strPrentCategory},{$strSortType},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
|
||||
Reference in New Issue
Block a user