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

@@ -138,8 +138,10 @@ class SiteContext
}else{
$strPcUrlTemp = $this->DomainModel->getFomartSubject('VIDEO_PC_URL_PATH', '', false);
$strRankUrlTemp = $this->DomainModel->getFomartSubject('VIDEO_RANK_INDEX_URL', '', false);
$strSearchListUrlTemp = $this->DomainModel->getFomartSubject('VIDEO_SEARCH_LIST_URL', '', false);
View::assign("strPcPath", $strPcUrlTemp);
View::assign("strRankUrlTemp", $strRankUrlTemp);
View::assign("strSearchListUrlTemp", $strSearchListUrlTemp);
}

View File

@@ -66,17 +66,38 @@ class VideoService
* @param string $intPinYin
* @return string
*/
public function getVideoInfoUrl($intVId, $intPinYin): string
public function getVideoInfoUrl(int $intVId, string $strPinYin): string
{
$strKey = 'VIDEO_INFO_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'intVId' => $intVId,
'strPinYin' => $intPinYin
'strPinYin' => $strPinYin
]);
return (string)$strUrl;
}
/**
* 视频播放
*
* @param integer $intVId
* @param string $strPinYin
* @param string $strPlayType
* @param integer $intPlayIndex
* @return string
*/
public function getVideoPlayUrl(int $intVId, string $strPinYin,string $strPlayType,int $intPlayIndex): string
{
$strKey = 'VIDEO_PLAY_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'intVId' => $intVId,
'strPinYin' => $strPinYin,
'strPlayType' => $strPlayType,
'intPlayIndex' => $intPlayIndex,
]);
return (string)$strUrl;
}
/**
* 获取视频分类URl
*
@@ -161,7 +182,7 @@ class VideoService
*/
public function getVideoSearchUrl($strKeyWords, $intPage = 1): string
{
$strKey = 'SEARCH_INFO_URL';
$strKey = 'VIDEO_SEARCH_LIST_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'intPage' => $intPage,
'strSearchKeywords' => $strKeyWords
@@ -365,7 +386,6 @@ class VideoService
$strVYear = $arrParams['v_year'];
$strSortType = $arrParams['sort_type'];
$strVStatus = $arrParams['v_isend'];
$strDiffKey = $arrParams['diff_key'];
$strKey = $arrParams['key'];
$intCacheLifeTime = $arrParams['cache_life'];