debug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user