shikong
This commit is contained in:
@@ -16,6 +16,7 @@ class Site extends TagLib
|
||||
'lcpurl' => ['attr' => 'n_id,n_py', 'close' => 0],
|
||||
'nclurl' => ['attr' => 'n_id,n_py,order,page', 'close' => 0],
|
||||
'nflurl' => ['attr' => 'gender,category,status,order,page', 'close' => 0],
|
||||
'rankurl' => ['attr' => 'gender,category,status,order,page', 'close' => 0],
|
||||
'grm' => ['attr' => 'domain,code,line,diff,start,end,index,type', 'close' => 0],
|
||||
'replace' => ['attr' => 'code,diff', 'close' => 0],
|
||||
|
||||
@@ -319,6 +320,35 @@ EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
/**
|
||||
* 排行榜 URL生成器
|
||||
*
|
||||
* @param array
|
||||
* @return string
|
||||
*/
|
||||
public function tagRankUrl($tag)
|
||||
{
|
||||
$strGender = isset($tag['gender']) ? $tag['gender'] : '';
|
||||
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
|
||||
$strStatus = isset($tag['status']) ? $tag['status'] : 'all';
|
||||
$strOrder = isset($tag['order']) ? $tag['order'] : '';
|
||||
$intPage = isset($tag['page']) ? $tag['page'] : 1;
|
||||
|
||||
$strGender = $this->customBuildVar($strGender);
|
||||
$strCategory = $this->customBuildVar($strCategory);
|
||||
$strStatus = $this->customBuildVar($strStatus);
|
||||
$strOrder = $this->customBuildVar($strOrder);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelRankUrl({$strGender},{$strCategory},{$strStatus},{$strOrder},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索页URL生成器
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user