123
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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, [
|
||||
@@ -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个元素
|
||||
|
||||
Reference in New Issue
Block a user