This commit is contained in:
make
2025-05-03 17:48:13 +08:00
parent d17b982cd0
commit 483c46b6d2
23 changed files with 399 additions and 110 deletions

View File

@@ -23,8 +23,10 @@ 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],
'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],
'forgelist' => ['attr' => 'count,diff_key,cache_life,d_key,d_val', 'close' => 1],
'helper' => ['attr' => 'func', 'close' => 0],
'getval' => ['attr' => 'code', 'close' => 0],
@@ -62,7 +64,7 @@ EOD;
/**
* 视频分类列表 URL生成器
*
* @param array $n_id
* @param array
* @return string '/vodtype-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
*/
public function tagVCLUrl($tag)
@@ -95,7 +97,7 @@ EOD;
/**
* 视频排行榜列表 URL生成器
*
* @param array $n_id
* @param array
* @return string
*/
public function tagVRLUrl($tag)
@@ -119,6 +121,78 @@ EOD;
return $strParse;
}
/**
* 视频详情URL生成器
*
* @param array
* @return string
*/
public function tagVUrl($tag)
{
$intVId = isset($tag['v_id']) ? $tag['v_id'] : '';
$strVPy = isset($tag['v_py']) ? $tag['v_py'] : '';
$intVId = $this->customBuildVar($intVId);
$strVPy = $this->customBuildVar($strVPy);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoInfoUrl({$intVId},{$strVPy});
echo \$strUrl;
?>
EOD;
return $strParse;
}
/**
* 视频播放URL生成器
*
* @param array
* @return string
*/
public function tagVPUrl($tag)
{
$intVId = isset($tag['v_id']) ? $tag['v_id'] : '';
$strVPy = isset($tag['v_py']) ? $tag['v_py'] : '';
$strPlayType = isset($tag['play_type']) ? $tag['play_type'] : '';
$intPlayIndex = isset($tag['play_index']) ? $tag['play_index'] : '';
$intVId = $this->customBuildVar($intVId);
$strVPy = $this->customBuildVar($strVPy);
$strPlayType = $this->customBuildVar($strPlayType);
$intPlayIndex = $this->customBuildVar($intPlayIndex);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoPlayUrl({$intVId},{$strVPy},{$strPlayType},{$intPlayIndex});
echo \$strUrl;
?>
EOD;
return $strParse;
}
/**
* 视频搜索页URL生成器
*
* @param array $key
* @return string
*/
public function tagVSUrl($tag)
{
$strKey = isset($tag['key']) ? $tag['key'] : '';
$intPage = isset($tag['p']) ? $tag['p'] : '';
$strKey = $this->customBuildVar($strKey);
$intPage = $this->customBuildVar($intPage);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoSearchUrl({$strKey},{$intPage});
echo \$strUrl;
?>
EOD;
return $strParse;
}
/**

View File

@@ -109,7 +109,7 @@ EOT;
$page = $tag['page'] ?? '0';
$limit = $tag['limit'] ?? '10';
$buttov_num = $tag['buttov_num'] ?? '10';
$v_class = $tag['v_class'] ?? '10';
$v_class = $tag['v_class'] ?? 'all';
$v_category = $tag['v_category'] ?? "all";
$v_lang = $tag['v_lang'] ?? "all";
$v_area = $tag['v_area'] ?? "all";