debug-video-seowords
This commit is contained in:
@@ -24,6 +24,7 @@ class Site extends TagLib
|
||||
'vclurl' => ['attr' => 'category,parent_category,area,lang,year,order,page', 'close' => 0],
|
||||
'vrlurl' => ['attr' => 'category,parent_category,sort_type,page', 'close' => 0],
|
||||
'vurl' => ['attr' => 'v_id,v_py', 'close' => 0],
|
||||
'vfurl' => ['attr' => 'v_id,v_py,v_fid', 'close' => 0],
|
||||
'vpurl' => ['attr' => 'v_id,v_py,play_type,play_index', 'close' => 0],
|
||||
'vsurl' => ['attr' => 'key', 'close' => 0],
|
||||
|
||||
@@ -143,6 +144,32 @@ EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
/**
|
||||
* 伪视频详情URL生成器
|
||||
*
|
||||
* @param array $n_id
|
||||
* @return string
|
||||
*/
|
||||
public function tagVFUrl($tag)
|
||||
{
|
||||
$intVId = isset($tag['v_id']) ? $tag['v_id'] : '';
|
||||
$strVPy = isset($tag['v_py']) ? $tag['v_py'] : '';
|
||||
$intVForgeId = isset($tag['v_fid']) ? $tag['v_fid'] : '';
|
||||
|
||||
$intVId = $this->customBuildVar($intVId);
|
||||
$strVPy = $this->customBuildVar($strVPy);
|
||||
$intVForgeId = $this->customBuildVar($intVForgeId);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\VideoService::class)->getForgeVideoInfoUrl({$intVId},{$strVPy},{$intVForgeId});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
return $strParse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 视频播放URL生成器
|
||||
*
|
||||
|
||||
@@ -337,16 +337,20 @@ EOT;
|
||||
{
|
||||
$v_id = $tag['v_id'] ?? '0';
|
||||
|
||||
$v_fid = $tag['v_fid'] ?? -1;
|
||||
|
||||
$v_key = $tag['v_key'] ?? 'arrVideo';
|
||||
|
||||
$v_id = $this->customBuildVar($v_id);
|
||||
$v_fid = $this->customBuildVar($v_fid);
|
||||
|
||||
$arrDataName = randomString(5);
|
||||
|
||||
$strParse = <<<EOT
|
||||
<?php
|
||||
\${$arrDataName} = app(\\app\\services\\VideoService::class)->getVideoByVId(
|
||||
{$v_id}
|
||||
{$v_id},
|
||||
{$v_fid}
|
||||
);
|
||||
|
||||
\${$v_key} = \${$arrDataName} ?? [];
|
||||
|
||||
Reference in New Issue
Block a user