This commit is contained in:
NULL
2025-08-18 20:28:41 +08:00
parent 2a417068cb
commit a4b58d8c03
2 changed files with 26 additions and 22 deletions

View File

@@ -318,6 +318,8 @@ class NovelService
*/
public function getNovelList(array $arrParams): array
{
$arrParams['key'] = '';
$intCount = (int)$arrParams['count'] ?? 10;
$strNCategory = $arrParams['n_category'] ?? '';
$strSortType = (string)$arrParams['sort_type'] ?? '';
@@ -414,6 +416,7 @@ class NovelService
*/
public function getNovelPager(array $arrParams): array
{
$arrParams['key'] = '';
$arrParams = [
'page' => max((int)($arrParams['page'] ?? 1), 1),
'limit' => (int)($arrParams['limit'] ?? 10),

View File

@@ -106,7 +106,7 @@ class VideoService
* @param integer $intPlayIndex
* @return string
*/
public function getVideoPlayUrl(int $intVId, string $strPinYin,string $strPlayType,int $intPlayIndex): string
public function getVideoPlayUrl(int $intVId, string $strPinYin, string $strPlayType, int $intPlayIndex): string
{
$strKey = 'VIDEO_PLAY_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
@@ -119,18 +119,18 @@ class VideoService
}
/**
* 获取视频分类URl
*
* @param string|NULL $strCategory
* @param string|NULL $strParentCategory
* @param string|NULL $strArea
* @param integer|string|NULL $strLang
* @param integer|string|NULL $strYear
* @param integer|string|NULL $strOrder
* @param integer|string|NULL $intPage
* @return string
*/
/**
* 获取视频分类URl
*
* @param string|NULL $strCategory
* @param string|NULL $strParentCategory
* @param string|NULL $strArea
* @param integer|string|NULL $strLang
* @param integer|string|NULL $strYear
* @param integer|string|NULL $strOrder
* @param integer|string|NULL $intPage
* @return string
*/
public function getVideoCategoryUrl(string|NULL $strCategory, string|NULL $strParentCategory, string|NULL $strArea, int|string|NULL $strLang, int|string|NULL $strYear, int|string|NULL $strOrder, int|string|NULL $intPage): string
{
$strKey = 'VIDEO_CATEGORY_URL';
@@ -157,7 +157,7 @@ class VideoService
* @param integer $intPage
* @return string
*/
public function getVideoRankUrl(string $strCategory,string $strParentCategory, string $strSortType, int $intPage): string
public function getVideoRankUrl(string $strCategory, string $strParentCategory, string $strSortType, int $intPage): string
{
$strKey = 'VIDEO_RANK_LIST_URL';
@@ -321,7 +321,7 @@ class VideoService
*/
public function getVideoList(array $arrParams): array
{
$arrParams['key'] = '';
$intCount = (int)$arrParams['count'] ?? 10;
// $strVCategory = $arrParams['v_category'] ?? '';
$strSortType = (string)$arrParams['sort_type'] ?? '';
@@ -449,6 +449,7 @@ class VideoService
*/
public function getVideoPager(array $arrParams): array
{
$arrParams['key'] = '';
$arrParams = [
'page' => max((int)($arrParams['page'] ?? 1), 1),
'limit' => (int)($arrParams['limit'] ?? 10),
@@ -710,8 +711,8 @@ class VideoService
throw new HttpException(404, '视频不存在');
}
if($intVForgeId >= 0 && !empty($arrVideo['v_seo_words'])){
$arrVideo['v_name'] = $arrVideo['v_seo_words'][$intVForgeId-1];
if ($intVForgeId >= 0 && !empty($arrVideo['v_seo_words'])) {
$arrVideo['v_name'] = $arrVideo['v_seo_words'][$intVForgeId - 1];
}
// 取前5个元素