Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev

# Conflicts:
#	code/app/services/VideoService.php
#	code/extend/template/taglib/Video.php
This commit is contained in:
Default
2025-05-03 23:56:50 +08:00
28 changed files with 828 additions and 162 deletions

View File

@@ -22,8 +22,11 @@ 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],
@@ -61,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)
@@ -91,6 +94,106 @@ EOD;
return $strParse;
}
/**
* 视频排行榜列表 URL生成器
*
* @param array
* @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;
}
/**
* 视频详情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

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