debug
This commit is contained in:
@@ -5,6 +5,7 @@ namespace app\services;
|
||||
use app\model\ConverterMovel;
|
||||
use app\model\DomainModel;
|
||||
use app\model\GanRaoMaModel;
|
||||
use app\model\VideoCategoryModel;
|
||||
use app\model\TemplatesModel;
|
||||
use app\model\CategoryModel;
|
||||
use app\model\ChapterModel;
|
||||
@@ -313,6 +314,64 @@ class SiteContext
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑。这是个样例
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function initVideoCategoryTypeTKD()
|
||||
{
|
||||
$strParentCategory = $this->Request->param('strParentCategory');
|
||||
ConverterMovel::setVal([
|
||||
'strVideoParentCategoryName' => empty($strParentCategory) || $strParentCategory == 'all' ? '' : StaticConfig::$arrVideoClass[$strParentCategory],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑。这是个样例
|
||||
* '/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
* @return void
|
||||
*/
|
||||
public function initVideoCategoryTKD()
|
||||
{
|
||||
$strParentCategory = $this->Request->param('strParentCategory');
|
||||
$strCategory = $this->Request->param('strCategory');
|
||||
$strYear = $this->Request->param('strYear');
|
||||
$strArea = $this->Request->param('strArea');
|
||||
$strOrder = $this->Request->param('strOrder');
|
||||
$strLang = $this->Request->param('strLang');
|
||||
$intPage = $this->Request->param('intPage');
|
||||
ConverterMovel::setVal([
|
||||
'strVideoParentCategoryName' => empty($strParentCategory) || $strParentCategory == 'all' ? '' : StaticConfig::$arrVideoClass[$strParentCategory],
|
||||
'strVideoCategoryName' => empty($strCategory) || $strCategory == 'all' ? '' : VideoCategoryModel::$arrCategory[$strCategory],
|
||||
'strAreaName' => empty($strArea) || $strArea == 'all' ? '' : StaticConfig::$arrVideoArea[$strArea],
|
||||
'strLangName' => empty($strLang) || $strLang == 'all' ? '' : StaticConfig::$arrVideoLang[$strLang],
|
||||
'strOrderName' => empty($strOrder) || $strOrder == 'all' ? '' : StaticConfig::$arrVideoSortType[$strOrder],
|
||||
'strYear' => empty($strYear) || $strYear == 'all' ? '' : StaticConfig::$arrVideoYear[$strYear],
|
||||
'intPage' => $intPage ?? 1,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑。这是个样例
|
||||
* '/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
* @return void
|
||||
*/
|
||||
public function initVideoRankListTKD()
|
||||
{
|
||||
$strParentCategory = $this->Request->param('strParentCategory');
|
||||
$strCategory = $this->Request->param('strCategory');
|
||||
$strSortType = $this->Request->param('strSortType');
|
||||
$intPage = $this->Request->param('intPage');
|
||||
ConverterMovel::setVal([
|
||||
'strVideoParentCategoryName' => empty($strParentCategory) || $strParentCategory == 'all' ? '' : StaticConfig::$arrVideoClass[$strParentCategory],
|
||||
'strVideoCategoryName' => empty($strCategory) || $strCategory == 'all' ? '' : VideoCategoryModel::$arrCategory[$strCategory],
|
||||
'strOrderName' => empty($strSortType) || $strSortType == 'all' ? '' : StaticConfig::$arrVideoRankSortType[$strSortType],
|
||||
'intPage' => $intPage ?? 1,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑。这是个样例
|
||||
*
|
||||
|
||||
@@ -62,10 +62,14 @@ class StaticConfig
|
||||
|
||||
static $arrVideoLang = [
|
||||
'all' => '所有',
|
||||
'guo-yu' => '国语',
|
||||
'yue-yu' => '粤语',
|
||||
'ying-yu' => '英语',
|
||||
'han-yu' => '韩语',
|
||||
'tai-yu' => '泰语',
|
||||
'ri-yu' => '日语',
|
||||
'yue-nan-yu' => '越南语',
|
||||
'ying-yu-shou-yu' => '英语手语',
|
||||
'ying-yu' => '英语',
|
||||
'yin-niu-te-yu' => '因纽特语',
|
||||
'yin-ni-yu' => '印尼语',
|
||||
'yin-du-yu' => '印度语Hindi',
|
||||
@@ -84,14 +88,12 @@ class StaticConfig
|
||||
'tu-ku-man-yu' => '土库曼语',
|
||||
'tu-er-qi-yu' => '土耳其语',
|
||||
'tu-er' => '土耳',
|
||||
'tai-yu' => '泰语',
|
||||
'tai-mi-er-yu' => '泰米尔语Tamil',
|
||||
'tai-mi-er' => '泰米尔',
|
||||
'tai-lu-gu-yu' => '泰卢固语',
|
||||
'ta-jia' => '他加',
|
||||
'shang-hai' => '上海',
|
||||
'rui-dian-yu' => '瑞典语',
|
||||
'ri-yu' => '日语',
|
||||
'qi-ta' => '其它',
|
||||
'pu-tong-hua' => '普通话',
|
||||
'pu-tao-ya-yu' => '葡萄牙语',
|
||||
@@ -111,8 +113,6 @@ class StaticConfig
|
||||
'he-lan-yu' => '荷兰语',
|
||||
'han-yu-pu-tong-hua' => '汉语普通话Manda',
|
||||
'han-yu-pu-tong' => '汉语普通',
|
||||
'han-yu' => '韩语',
|
||||
'guo-yu' => '国语',
|
||||
'fei-lv-bin-yu' => '菲律宾语',
|
||||
'fa-yu' => '法语',
|
||||
'e-yu' => '俄语',
|
||||
@@ -134,25 +134,28 @@ class StaticConfig
|
||||
'zhong-guo-tai-wan' => '中国台湾',
|
||||
'zhong-guo-da-lu' => '中国大陆',
|
||||
'zhong-guo' => '中国',
|
||||
'mei-guo' => '美国',
|
||||
'da-lu' => '大陆',
|
||||
'xiang-gang' => '香港',
|
||||
'tai-wan' => '台湾',
|
||||
'ri-ben' => '日本',
|
||||
'han-guo' => '韩国',
|
||||
'tai-guo' => '泰国',
|
||||
'xin-jia-po' => '新加坡',
|
||||
'yin-du' => '印度',
|
||||
'ying-guo' => '英国',
|
||||
'zhi-li' => '智利',
|
||||
'yue-nan' => '越南',
|
||||
'ying-guo' => '英国',
|
||||
'yin-ni' => '印尼',
|
||||
'yin-du' => '印度',
|
||||
'yi-da-li' => '意大利',
|
||||
'xiong-ya-li' => '匈牙利',
|
||||
'xin-xi-lan' => '新西兰',
|
||||
'xin-jia-po' => '新加坡',
|
||||
'xiang-gang' => '香港',
|
||||
'xi-de' => '西德',
|
||||
'xi-ban-ya' => '西班牙',
|
||||
'tu-er-qi' => '土耳其',
|
||||
'tai-wan' => '台湾',
|
||||
'tai-guo' => '泰国',
|
||||
'si-luo-wen-ni-ya' => '斯洛文尼亚',
|
||||
'rui-shi' => '瑞士',
|
||||
'rui-dian' => '瑞典',
|
||||
'ri-ben' => '日本',
|
||||
'qi-ta' => '其它',
|
||||
'pu-tao-ya' => '葡萄牙',
|
||||
'nuo-wei' => '挪威',
|
||||
@@ -161,7 +164,6 @@ class StaticConfig
|
||||
'nan-fei' => '南非',
|
||||
'mo-xi-ge' => '墨西哥',
|
||||
'mo-luo-ge' => '摩洛哥',
|
||||
'mei-guo' => '美国',
|
||||
'ma-lai-xi-ya' => '马来西亚',
|
||||
'ma-er-ta' => '马耳他',
|
||||
'lu-sen-bao' => '卢森堡',
|
||||
@@ -170,14 +172,12 @@ class StaticConfig
|
||||
'jian-pu-zhai' => '柬埔寨',
|
||||
'jia-na-da' => '加拿大',
|
||||
'he-lan' => '荷兰',
|
||||
'han-guo' => '韩国',
|
||||
'ha-sa-ke-si-tan' => '哈萨克斯坦',
|
||||
'fei-lv-bin' => '菲律宾',
|
||||
'fa-guo' => '法国',
|
||||
'e-luo-si' => '俄罗斯',
|
||||
'de-guo' => '德国',
|
||||
'dan-mai' => '丹麦',
|
||||
'da-lu' => '大陆',
|
||||
'bo-lan' => '波兰',
|
||||
'bi-li-shi' => '比利时',
|
||||
'bao-jia-li-ya' => '保加利亚',
|
||||
@@ -192,90 +192,89 @@ class StaticConfig
|
||||
|
||||
static $arrVideoYear = [
|
||||
'all' => '所有',
|
||||
'1924' => '1924',
|
||||
'1935' => '1935',
|
||||
'1938' => '1938',
|
||||
'1940' => '1940',
|
||||
'1941' => '1941',
|
||||
'1942' => '1942',
|
||||
'1945' => '1945',
|
||||
'1948' => '1948',
|
||||
'1949' => '1949',
|
||||
'1950' => '1950',
|
||||
'1952' => '1952',
|
||||
'1953' => '1953',
|
||||
'1954' => '1954',
|
||||
'1955' => '1955',
|
||||
'1956' => '1956',
|
||||
'1957' => '1957',
|
||||
'1958' => '1958',
|
||||
'1959' => '1959',
|
||||
'1960' => '1960',
|
||||
'1962' => '1962',
|
||||
'1963' => '1963',
|
||||
'1964' => '1964',
|
||||
'1965' => '1965',
|
||||
'1966' => '1966',
|
||||
'1967' => '1967',
|
||||
'1968' => '1968',
|
||||
'1969' => '1969',
|
||||
'1970' => '1970',
|
||||
'1971' => '1971',
|
||||
'1972' => '1972',
|
||||
'1973' => '1973',
|
||||
'1974' => '1974',
|
||||
'1975' => '1975',
|
||||
'1976' => '1976',
|
||||
'1977' => '1977',
|
||||
'1978' => '1978',
|
||||
'1979' => '1979',
|
||||
'1980' => '1980',
|
||||
'1981' => '1981',
|
||||
'1982' => '1982',
|
||||
'1983' => '1983',
|
||||
'1984' => '1984',
|
||||
'1985' => '1985',
|
||||
'1986' => '1986',
|
||||
'1987' => '1987',
|
||||
'1988' => '1988',
|
||||
'1989' => '1989',
|
||||
'1990' => '1990',
|
||||
'1991' => '1991',
|
||||
'1992' => '1992',
|
||||
'1993' => '1993',
|
||||
'1994' => '1994',
|
||||
'1995' => '1995',
|
||||
'1996' => '1996',
|
||||
'1997' => '1997',
|
||||
'1998' => '1998',
|
||||
'1999' => '1999',
|
||||
'2000' => '2000',
|
||||
'2001' => '2001',
|
||||
'2002' => '2002',
|
||||
'2003' => '2003',
|
||||
'2004' => '2004',
|
||||
'2005' => '2005',
|
||||
'2006' => '2006',
|
||||
'2007' => '2007',
|
||||
'2008' => '2008',
|
||||
'2009' => '2009',
|
||||
'2010' => '2010',
|
||||
'2011' => '2011',
|
||||
'2012' => '2012',
|
||||
'2013' => '2013',
|
||||
'2014' => '2014',
|
||||
'2015' => '2015',
|
||||
'2016' => '2016',
|
||||
'2017' => '2017',
|
||||
'2018' => '2018',
|
||||
'2019' => '2019',
|
||||
'2020' => '2020',
|
||||
'2021' => '2021',
|
||||
'2022' => '2022',
|
||||
'2023' => '2023',
|
||||
'2024' => '2024',
|
||||
'2025' => '2025',
|
||||
|
||||
'2024' => '2024',
|
||||
'2023' => '2023',
|
||||
'2022' => '2022',
|
||||
'2021' => '2021',
|
||||
'2020' => '2020',
|
||||
'2019' => '2019',
|
||||
'2018' => '2018',
|
||||
'2017' => '2017',
|
||||
'2016' => '2016',
|
||||
'2015' => '2015',
|
||||
'2014' => '2014',
|
||||
'2013' => '2013',
|
||||
'2012' => '2012',
|
||||
'2011' => '2011',
|
||||
'2010' => '2010',
|
||||
'2009' => '2009',
|
||||
'2008' => '2008',
|
||||
'2007' => '2007',
|
||||
'2006' => '2006',
|
||||
'2005' => '2005',
|
||||
'2004' => '2004',
|
||||
'2003' => '2003',
|
||||
'2002' => '2002',
|
||||
'2001' => '2001',
|
||||
'2000' => '2000',
|
||||
'1999' => '1999',
|
||||
'1998' => '1998',
|
||||
'1997' => '1997',
|
||||
'1996' => '1996',
|
||||
'1995' => '1995',
|
||||
'1994' => '1994',
|
||||
'1993' => '1993',
|
||||
'1992' => '1992',
|
||||
'1991' => '1991',
|
||||
'1990' => '1990',
|
||||
'1989' => '1989',
|
||||
'1988' => '1988',
|
||||
'1987' => '1987',
|
||||
'1986' => '1986',
|
||||
'1985' => '1985',
|
||||
'1984' => '1984',
|
||||
'1983' => '1983',
|
||||
'1982' => '1982',
|
||||
'1981' => '1981',
|
||||
'1980' => '1980',
|
||||
'1979' => '1979',
|
||||
'1978' => '1978',
|
||||
'1977' => '1977',
|
||||
'1976' => '1976',
|
||||
'1975' => '1975',
|
||||
'1974' => '1974',
|
||||
'1973' => '1973',
|
||||
'1972' => '1972',
|
||||
'1971' => '1971',
|
||||
'1970' => '1970',
|
||||
'1969' => '1969',
|
||||
'1968' => '1968',
|
||||
'1967' => '1967',
|
||||
'1966' => '1966',
|
||||
'1965' => '1965',
|
||||
'1964' => '1964',
|
||||
'1963' => '1963',
|
||||
'1962' => '1962',
|
||||
'1960' => '1960',
|
||||
'1959' => '1959',
|
||||
'1958' => '1958',
|
||||
'1957' => '1957',
|
||||
'1956' => '1956',
|
||||
'1955' => '1955',
|
||||
'1954' => '1954',
|
||||
'1953' => '1953',
|
||||
'1952' => '1952',
|
||||
'1950' => '1950',
|
||||
'1949' => '1949',
|
||||
'1948' => '1948',
|
||||
'1945' => '1945',
|
||||
'1942' => '1942',
|
||||
'1941' => '1941',
|
||||
'1940' => '1940',
|
||||
'1938' => '1938',
|
||||
'1935' => '1935',
|
||||
'1924' => '1924',
|
||||
];
|
||||
|
||||
static $arrVideoClass = [
|
||||
|
||||
@@ -584,12 +584,12 @@ class VideoService
|
||||
|
||||
$intLifeTime = $intLifeTime;
|
||||
}
|
||||
|
||||
|
||||
// 更新值
|
||||
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => $intPage,
|
||||
'strVideoClassName' => empty($strVClass) || $strVClass == 'all' ? '' : StaticConfig::$arrVideoClass[$strVClass],
|
||||
'strVideoParentCategoryName' => empty($strVParentCategory) || $strVParentCategory == 'all' ? '' : StaticConfig::$arrVideoClass[$strVParentCategory],
|
||||
'strVideoCategoryName' => empty($strNCategory) ? '' : str_replace("视频", "", $strNCategory),
|
||||
'strVideoStatus' => empty($strVStatus) ? '' : StaticConfig::$arrVideoStatus[$strVStatus],
|
||||
'strVideoOrder' => empty($strSortType) ? '' : StaticConfig::$arrVideoSortType[$strSortType],
|
||||
@@ -682,6 +682,12 @@ class VideoService
|
||||
// 视频详情
|
||||
$arrVideo = $this->VideoModel->getVideoByVId($intVId);
|
||||
|
||||
// 取前5个元素
|
||||
$strTopActor = array_slice($arrVideo['v_actor'], 0, 5);
|
||||
|
||||
// 取前5个元素
|
||||
$strTopDirectors = array_slice($arrVideo['v_director'], 0, 5);
|
||||
|
||||
// 点击数
|
||||
$arrVideoClicks = $this->VideoClicksModel->getStats($intVId);
|
||||
|
||||
@@ -689,9 +695,13 @@ class VideoService
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => 1,
|
||||
'strVideoName' => $arrVideo['v_name'],
|
||||
'strVideoParentCategoryName' => $arrVideo['v_parent_category'],
|
||||
'strVideoCategoryName' => $arrVideo['v_category'],
|
||||
'strVideoStatus' => $arrVideo['v_isend'],
|
||||
'strVideoDescription' => $arrVideo['v_description'],
|
||||
'intPlayIndex' => 1,
|
||||
'strVideoDirector' => implode(',', $strTopDirectors),
|
||||
'strVideoActor' => implode(',', $strTopActor),
|
||||
]);
|
||||
|
||||
$arrVideo['arrVideoClicks'] = $arrVideoClicks;
|
||||
|
||||
Reference in New Issue
Block a user