From cc61365c5d36d032adc94a3f07613b0734428a13 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 00:54:34 +0800 Subject: [PATCH] debug --- code/app/home/config/router.php | 135 +++--- code/app/home/view/videoDadi/base.html | 56 +-- code/app/home/view/videoDadi/index/index.html | 24 +- .../view/videoDadi/public/video-list-phb.html | 3 +- .../view/videoDadi/public/video-list-shu.html | 2 +- .../view/videoDadi/public/video-panel.html | 8 +- .../view/videoDadi/user/getBookShelf.html | 40 -- .../home/view/videoDadi/user/getHistory.html | 175 ++++++- .../view/videoDadi/video/getCategory.html | 66 ++- .../view/videoDadi/video/getCategoryType.html | 29 +- .../home/view/videoDadi/video/getHistory.html | 153 ------- .../home/view/videoDadi/video/getRank.html | 32 +- .../view/videoDadi/video/getRankList.html | 60 +-- .../view/videoDadi/video/getSearchVideo.html | 24 +- .../view/videoDadi/video/getVideoInfo.html | 173 ++++--- .../view/videoDadi/video/getVideoPlayUrl.html | 85 +++- code/app/model/DomainModel.php | 1 - code/app/services/StaticConfig.php | 28 ++ code/app/services/VideoService.php | 32 +- code/extend/template/taglib/Site.php | 31 +- .../initdata/video/baseSubjectFomartGroup.php | 8 +- code/public/initdata/video/getInfo/text.php | 100 ++-- .../initdata/video/getVideolPlay/text.php | 100 ++-- .../initdata/video/urlSubjectFomartGroup.php | 78 ++-- code/public/public/video/common.js | 429 ++++++++++++++++++ .../template/videodadi/css/stui_block.css | 32 +- ...con_dianshiju.png => icon_dian-shi-ju.png} | Bin .../{icon_dianying.png => icon_dian-ying.png} | Bin .../{icon_donman.png => icon_don-man.png} | Bin ...on_duanju.png => icon_duan-ju-da-quan.png} | Bin doc/TemplateTag.md | 56 ++- 31 files changed, 1260 insertions(+), 700 deletions(-) delete mode 100644 code/app/home/view/videoDadi/user/getBookShelf.html delete mode 100644 code/app/home/view/videoDadi/video/getHistory.html create mode 100644 code/public/public/video/common.js rename code/public/template/videodadi/icon/{icon_dianshiju.png => icon_dian-shi-ju.png} (100%) rename code/public/template/videodadi/icon/{icon_dianying.png => icon_dian-ying.png} (100%) rename code/public/template/videodadi/icon/{icon_donman.png => icon_don-man.png} (100%) rename code/public/template/videodadi/icon/{icon_duanju.png => icon_duan-ju-da-quan.png} (100%) diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index fb78f48..a6af224 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -92,55 +92,74 @@ $arrRoutes = [ /** * 视频分类 分页 - * - * /vodtype-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1 - * /dong-zuo-pian/vodclass-dianying-zhongguodalu-guoyu-1992-news-page1 - * /dong-zuo-pian-vodlist/dianying-zhongguodalu-guoyu-1992-news-page1 - * /vodcategory-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1 - * - * /video-type/dianying/dong-zuo-pian/zhongguodalu/guoyu/1992/news/page1 - * /video-class-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1 - * /video-list-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news/page1 - * /video-category-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1 - * - * /shipinfenlei-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1 - * /shipinleixing-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1 - * /shipinliebiao-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1 - * + + * /目前使用的3种模板: + * /vodtype-dian-ying/dong-zuo-pian-1992-zhong-guo-da-lu-news/guo-yu-page1 + * /vodclass-dong-zuo-pian/dian-ying-1992-zhong-guo-da-lu-news/guo-yu-page1 + * /vodcategory-dian-ying-1992-dong-zuo-pian/zhong-guo-da-lu-news/guo-yu-page1 + * * /vodshow/电影/动作片/中国大陆/国语/1992/最新/第一页 */ 'video_category' => [ - '/vodtype-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/:strCategory/vodclass-:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/vodcategory-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/:strCategory-vodlist/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', + + // '/vodtype-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/vodclass-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/vodcategory-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', - '/video-type/:strClass/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage', - '/video-class-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/video-category-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/video-list-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder/page:intPage', + // '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/video-class/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/video-category/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', - '/shipinfenlei-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/shipinleixing-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', - '/shipinliebiao-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/shipinfenlei-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/shipinleixing-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + // '/shipinliebiao-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage', + + + // ok -现在使用的9套 + '/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/vodclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/vodcategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage', + + '/videotype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/videoclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/videocategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage', + + '/shipinfenlei-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/shipinleixing-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage', + '/shipinliebiao-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage', + + + // '/vodtype-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/:strCategory/vodclass-:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/vodcategory-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/:strCategory-vodlist/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', + + // '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage', + // '/video-class-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/video-category-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/video-list-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder/page:intPage', + + // '/shipinfenlei-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/shipinleixing-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', + // '/shipinliebiao-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage', ], // 视频分类 首页 'video_category_index' => [ - '/vodtype/:strClass', - '/vodclass/:strClass', - '/vodcategory/:strClass', - '/vodlist/:strClass', + '/vodtype/:strParentCategory', + '/vodclass/:strParentCategory', + '/vodcategory/:strParentCategory', + // '/vodlist/:strParentCategory', - '/video-type/:strClass', - '/video-class/:strClass', - '/video-category/:strClass', - '/video-list/:strClass', + '/video-type/:strParentCategory', + '/video-class/:strParentCategory', + '/video-category/:strParentCategory', + // '/video-list/:strParentCategory', - '/shipinfenlei/:strClass', - '/shipinleixing/:strClass', - '/shipinliebiao/:strClass', + '/shipinfenlei/:strParentCategory', + '/shipinleixing/:strParentCategory', + '/shipinliebiao/:strParentCategory', ], @@ -184,23 +203,26 @@ $arrRoutes = [ //排行榜 'video_rank_list' => [ - '/paihang/:strClass/:strCategory/:strSortType', - '/rank:strCategory/:strClass-:strSortType', - '/:strClass/:strCategory/:strSortType-paihang', + '/paihang/:strParentCategory/:strCategory/:strSortType', + '/rank:strCategory/:strParentCategory-:strSortType', + '/:strParentCategory/:strCategory/:strSortType-paihang', - '/:strCategory/:strClass-:strSortType-top', - '/:strClass-:strSortType/paihangbang-:strCategory', - '/:strClass-:strSortType/:strCategory-ranks', + '/:strCategory/:strParentCategory-:strSortType-top', + '/:strParentCategory-:strSortType/paihangbang-:strCategory', + '/:strParentCategory-:strSortType/:strCategory-ranks', - '/sort:strCategory/:strClass-:strSortType', - '/:strClass/:strCategory/:strSortType-order', - '/:strClass-:strSortType/:strCategory-phb', + '/sort:strCategory/:strParentCategory-:strSortType', + '/:strParentCategory/:strCategory/:strSortType-order', + '/:strParentCategory-:strSortType/:strCategory-phb', ], //搜索 'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'], + + 'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'], + // 视频站点url -- end @@ -420,7 +442,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { return view($strView); }) ->pattern([ - 'strClass' => '[a-z\-]*', // 允许空值 + 'strParentCategory' => '[a-z\-]*', // 允许空值 ]); break; @@ -448,7 +470,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { return view($strView); }) ->pattern([ - 'strClass' => '[a-z\-]*', // 允许空值 + 'strParentCategory' => '[a-z\-]*', // 允许空值 'strCategory' => '[a-z\-]*', // 允许空值 'strSortType' => '[a-z\-]*', // 允许空值 'intPage' => '\d*', // 允许空值 @@ -465,12 +487,12 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { return view($strView); }) ->pattern([ - 'strClass' => '[a-z\-]*', // 允许空值 + 'strParentCategory' => '[a-z\-]*', // 允许空值 'strCategory' => '[a-z\-]*', // 允许空值 'strArea' => '[a-z\-]*', // 允许空值 'strLang' => '[a-z\-]*', // 允许空值 - 'strYear' => '[a-zA-Z0-9\-]*', // 允许空值 - 'strSort' => '[a-z\-]*', // 允许空值 + 'strYear' => '([0-9]+|all)?', // 允许空值 + 'strOrder' => '[a-zA-Z]*', // 允许空值 'intPage' => '\d*', // 允许空值 ]); break; @@ -510,6 +532,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { })->ext('html'); break; + case 'video_history': + //历史记录 + $strView = 'pc/user/getHistory.html'; + if ($platform == 'h5') { + $strView = 'user/getHistory.html'; + } + Route::get($strRoute, function () use ($strView) { + return view($strView); + }); + break; + // 视频站点url -- end diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index 081da96..37b0e5d 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -22,9 +22,13 @@ + + {block name="head"}{/block} {block name="head-css"}{/block} @@ -54,10 +58,10 @@
@@ -85,23 +89,23 @@
@@ -124,7 +104,9 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
diff --git a/code/app/home/view/videoDadi/video/getRankList.html b/code/app/home/view/videoDadi/video/getRankList.html index 9c7128a..3949d60 100644 --- a/code/app/home/view/videoDadi/video/getRankList.html +++ b/code/app/home/view/videoDadi/video/getRankList.html @@ -71,38 +71,37 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
  • 按分类
  • + class='{if empty( $Request.route.strParentCategory) || $Request.route.strParentCategory == "" || $Request.route.strParentCategory == "all"}active{/if}'> 全部 + href='{site:vrlurl parent_category="all" category="all" sort_type="Request.route.strSortType" page="1"/}'>全部
  • {video:categorytype category_type="ONE" d_key="key" d_val="val"} -
  • +
  • - {$val.v_category}
  • {/video:categorytype} -
    @@ -117,7 +116,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e

    + href='{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'> 《{$arrVideo.v_name}》

    类型: - {$arrVideo.v_category} -   + {$arrVideo.v_category}   地区: - {$arrVideo.v_area} + {volist name='$arrVideo.v_actor' id='vo' key='index'} + {$vo}   + {/volist} 年份: - {$arrVideo.v_year} + {$arrVideo.v_year}  

    @@ -222,7 +223,8 @@ @@ -241,7 +243,7 @@

    【{$arrVideo.v_name}】

       {$arrVideo.v_description|raw} - {}   + {}  

    @@ -258,15 +260,27 @@
    @@ -279,12 +293,16 @@
    -

    喜剧片周榜单

    +

    {$arrVideo.v_parent_category}周榜单 +

      - {video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"} + {video:ranklist count="12" + v_parent_category_en="$arrVideo.v_parent_category_en" + sort_type="weekly" + d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-phb" /} {/video:ranklist}
    @@ -295,12 +313,16 @@
    -

    喜剧片月榜单

    +

    {$arrVideo.v_parent_category}月榜单 +

      - {video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"} + {video:ranklist count="12" + v_parent_category_en="$arrVideo.v_parent_category_en" + sort_type="monthly" + d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-phb" /} {/video:ranklist}
    @@ -310,6 +332,21 @@
    + + {/block} {block name="customize"} @@ -328,19 +365,17 @@ var intJumpTimeFirst = 1; var intJumpTimeTwoStart = 1; var intJumpTimeTwoEnd = 1; - var arrPlayUrl = {:json_encode($arrVideo.v_play_url)}; + var arrPlayUrl = {$arrVideo.v_play_url|json_encode|raw} ; var strPlayUrl = "" - if(strPlayType == 'default'){ + if (strPlayType == 'default') { strPlayUrl = findFirstUrl(arrPlayUrl) - }else{ + } else { var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1] strPlayUrl = ActivePlayUrl.url } - + document.addEventListener('DOMContentLoaded', function () { - - console.log(strPlayUrl) initDPlayer(strPlayUrl) function initDPlayer(strPlayUrl) { diff --git a/code/app/model/DomainModel.php b/code/app/model/DomainModel.php index fc395ef..986f0f1 100644 --- a/code/app/model/DomainModel.php +++ b/code/app/model/DomainModel.php @@ -184,7 +184,6 @@ class DomainModel extends BaseModel $arrKeys[] = '{' . $strKey . '}'; $arrVals[] = $strVal; } - return str_replace($arrKeys, $arrVals, $strSfVal); } diff --git a/code/app/services/StaticConfig.php b/code/app/services/StaticConfig.php index 750457e..db04840 100644 --- a/code/app/services/StaticConfig.php +++ b/code/app/services/StaticConfig.php @@ -286,6 +286,34 @@ class StaticConfig "duan-ju-da-quan" => "短剧", ]; + // 测试-没使用到 + static $arrVideoClassTest = [ + "dian-ying" => "电影", + "dian-shi-ju" => "电视剧", + "zong-yi" => "综艺", + "dong-man" => "动漫", + "duan-ju-da-quan" => "短剧", + + "dianying" => "电影", + "dianshiju" => "电视剧", + "zongyi" => "综艺", + "dongman" => "动漫", + "duanjudaquan" => "短剧", + + "1" => "电影", + "2" => "电视剧", + "3" => "综艺", + "4" => "动漫", + "5" => "短剧", + + "电影" => "电影", + "电视剧" => "电视剧", + "综艺" => "综艺", + "动漫" => "动漫", + "短剧" => "短剧", + + ]; + // 'v_lang', # 视频的语言(如“中文”、“英语”) // 'v_area', # 视频的地区(如“中国”、“美国”) // 'v_year', # 视频的发行年份(如 2023) diff --git a/code/app/services/VideoService.php b/code/app/services/VideoService.php index 767322f..03597f5 100644 --- a/code/app/services/VideoService.php +++ b/code/app/services/VideoService.php @@ -44,14 +44,14 @@ class VideoService /** * 获取视频分类首页 URl * - * @param string $strClass + * @param string $strParentCategory * @return string */ - public function getVideoCategoryIndexUrl(string $strClass): string + public function getVideoCategoryIndexUrl(string $strParentCategory): string { $strKey = 'VIDEO_CATEGORY_INDEX_URL'; $strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [ - 'strClass' => !empty($strClass) ? $strClass : '', + 'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : '', ]); $strUrl = preg_replace('#/{2,}#', '/', $strUrl); @@ -103,7 +103,7 @@ class VideoService * 获取视频分类URl * * @param string|NULL $strCategory - * @param string|NULL $strClass + * @param string|NULL $strParentCategory * @param string|NULL $strArea * @param integer|string|NULL $strLang * @param integer|string|NULL $strYear @@ -111,12 +111,12 @@ class VideoService * @param integer|string|NULL $intPage * @return string */ - public function getVideoCategoryUrl(string|NULL $strCategory, string|NULL $strClass, string|NULL $strArea, int|string|NULL $strLang, int|string|NULL $strYear, int|string|NULL $strOrder, int|string|NULL $intPage): 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'; $strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [ 'strCategory' => !empty($strCategory) ? $strCategory : 'all', - 'strClass' => !empty($strClass) ? $strClass : 'all', + 'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : 'all', 'strArea' => !empty($strCategory) ? $strArea : 'all', 'strLang' => !empty($strCategory) ? $strLang : 'all', 'strYear' => !empty($strCategory) ? $strYear : 'all', @@ -132,18 +132,18 @@ class VideoService * 排行榜 列表 url * * @param string $strCategory - * @param string $strClass + * @param string $strParentCategory * @param string $strSortType * @param integer $intPage * @return string */ - public function getVideoRankUrl(string $strCategory,string $strClass, string $strSortType, int $intPage): string + public function getVideoRankUrl(string $strCategory,string $strParentCategory, string $strSortType, int $intPage): string { - + $strKey = 'VIDEO_RANK_LIST_URL'; $strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [ 'strCategory' => !empty($strCategory) ? $strCategory : 'all', - 'strClass' => !empty($strClass) ? $strClass : 'all', + 'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : 'all', 'strSortType' => !empty($strSortType) ? $strSortType : 'all', 'intPage' => $intPage ?? 1, ]); @@ -650,18 +650,18 @@ class VideoService */ public function generateVideoPager(array $arrParams, array $arrSort, array $arrVideo): array { - $strCategory = $arrParams['v_category']; - $strClass = $arrParams['v_class']; - $strArea = $arrParams['v_area']; - $strLang = $arrParams['v_lang']; + + $strParentCategory = $arrParams['v_parent_category_en']; + $strCategory = $arrParams['v_category_en']; + $strLang = $arrParams['v_lang_en']; + $strArea = $arrParams['v_area_en']; $strYear = $arrParams['v_year']; $strOrder = $arrParams['sort_type']; - $intPage = $arrVideo['page']; $intLimit = $arrVideo['limit']; $intButtomNum = $arrParams['buttov_num']; - $strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strClass, $strArea, $strLang, $strYear, $strOrder, '{page}'); + $strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strParentCategory, $strArea, $strLang, $strYear, $strOrder, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum); return $arrPaginator; diff --git a/code/extend/template/taglib/Site.php b/code/extend/template/taglib/Site.php index 0336997..2e15827 100644 --- a/code/extend/template/taglib/Site.php +++ b/code/extend/template/taglib/Site.php @@ -20,9 +20,9 @@ class Site extends TagLib 'grm' => ['attr' => 'domain,code,line,diff,start,end,index,type', 'close' => 0], 'replace' => ['attr' => 'code,diff', 'close' => 0], - 'vciurl' => ['attr' => 'class', 'close' => 0], - 'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0], - 'vrlurl' => ['attr' => 'category,class,sort_type,page', 'close' => 0], + 'vciurl' => ['attr' => 'prent_category', 'close' => 0], + 'vclurl' => ['attr' => 'category,prent_category,area,lang,year,order,page', 'close' => 0], + 'vrlurl' => ['attr' => 'category,prent_category,sort_type,page', 'close' => 0], 'vurl' => ['attr' => 'v_id,v_py', 'close' => 0], 'vpurl' => ['attr' => 'v_id,v_py,play_type,play_index', 'close' => 0], 'vsurl' => ['attr' => 'key', 'close' => 0], @@ -49,12 +49,12 @@ class Site extends TagLib */ public function tagVCIUrl($tag) { - $strClass = $tag['class']; - $strClass = $this->customBuildVar($strClass); + $strPrentCategory = $tag['prent_category']; + $strPrentCategory = $this->customBuildVar($strPrentCategory); $strParse = <<getVideoCategoryIndexUrl({$strClass}); + \$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strPrentCategory}); echo \$strUrl; ?> EOD; @@ -70,7 +70,7 @@ EOD; public function tagVCLUrl($tag) { $strCategory = isset($tag['category']) ? $tag['category'] : 'all'; - $strClass = isset($tag['class']) ? $tag['class'] : 'all'; + $strPrentCategory = isset($tag['prent_category']) ? $tag['prent_category'] : 'all'; $strArea = isset($tag['area']) ? $tag['area'] : 'all'; $strLang = isset($tag['lang']) ? $tag['lang'] : 'all'; $strYear = isset($tag['year']) ? $tag['year'] : 'all'; @@ -78,7 +78,7 @@ EOD; $intPage = isset($tag['page']) ? $tag['page'] : 1; $strCategory = $this->customBuildVar($strCategory); - $strClass = $this->customBuildVar($strClass); + $strPrentCategory = $this->customBuildVar($strPrentCategory); $strArea = $this->customBuildVar($strArea); $strLang = $this->customBuildVar($strLang); $strYear = $this->customBuildVar($strYear); @@ -87,7 +87,7 @@ EOD; $strParse = <<getVideoCategoryUrl({$strCategory},{$strClass},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage}); + \$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strPrentCategory},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage}); echo \$strUrl; ?> EOD; @@ -102,19 +102,18 @@ EOD; */ public function tagVRLUrl($tag) { - $strCategory = isset($tag['category']) ? $tag['category'] : 'all'; - $strClass = isset($tag['class']) ? $tag['class'] : 'all'; - $strSortType = isset($tag['sort_type']) ? $tag['sort_type'] : 'all'; - $intPage = isset($tag['page']) ? $tag['page'] : 1; - + $strCategory = empty($tag['category']) ? 'all' : $tag['category']; + $strPrentCategory = empty($tag['parent_category']) ? 'all' : $tag['parent_category']; + $strSortType = empty($tag['sort_type']) ? 'all' : $tag['sort_type']; + $intPage = empty($tag['page']) ? 1 : $tag['page']; $strCategory = $this->customBuildVar($strCategory); - $strClass = $this->customBuildVar($strClass); + $strPrentCategory = $this->customBuildVar($strPrentCategory); $strSortType = $this->customBuildVar($strSortType); $intPage = $this->customBuildVar($intPage); $strParse = <<getVideoRankUrl({$strCategory},{$strClass},{$strSortType},{$intPage}); + \$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strPrentCategory},{$strSortType},{$intPage}); echo \$strUrl; ?> EOD; diff --git a/code/public/initdata/video/baseSubjectFomartGroup.php b/code/public/initdata/video/baseSubjectFomartGroup.php index 231bd29..90bfb78 100644 --- a/code/public/initdata/video/baseSubjectFomartGroup.php +++ b/code/public/initdata/video/baseSubjectFomartGroup.php @@ -265,14 +265,14 @@ $arrVideoSubjectFomartGroupData = [ 'description' => '视频分类首页URL 模板1', 'sfg_id' => 1022, 'arrSubjectFomart' => [ - '/vodtype/{strClass}', + '/vodtype/{strParentCategory}', ] ], 'VIDEO_CATEGORY_URL' => [ 'description' => '视频分类列表URL 模板1', 'sfg_id' => 1023, 'arrSubjectFomart' => [ - '/vodtype-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/vodtype-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', ] ], 'VIDEO_INFO_URL' => [ @@ -300,7 +300,7 @@ $arrVideoSubjectFomartGroupData = [ 'description' => '视频排行榜列表URL 模板1', 'sfg_id' => 1027, 'arrSubjectFomart' => [ - '/paihang/{strClass}/{strCategory}/{strSortType}', + '/paihang/{strParentCategory}/{strCategory}/{strSortType}', ] ], 'VIDEO_SEARCH_LIST_URL' => [ @@ -310,7 +310,7 @@ $arrVideoSubjectFomartGroupData = [ '/search.html?keyword={strSearchKeywords}&page={intPage}', ] ], - 'VIDEO_HISTORY_LIST_URL' => [ + 'VIDEO_HISTORY_LIST_URL' => [ 'description' => '视频历史记录URL 模板1', 'sfg_id' => 1029, 'arrSubjectFomart' => [ diff --git a/code/public/initdata/video/getInfo/text.php b/code/public/initdata/video/getInfo/text.php index 61392f6..0e61749 100644 --- a/code/public/initdata/video/getInfo/text.php +++ b/code/public/initdata/video/getInfo/text.php @@ -4,54 +4,54 @@ // +---------------------------------------------------------------------- return [ - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoActor}主演,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享高清!", - "畅享{strYear}{strVideoName}高清在线,{strVideoDescription},{strVideoActor}主演{strAreaName}{strVideoClassName},{strSiteKeywords},探索精彩!", - "探索{strSiteName}推荐{strVideoName},{strVideoDescription},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费观看{strVideoCategoryName}!", - "{strSiteName}献上{strVideoName},{strVideoDescription},{strVideoActor}主演高清{strVideoClassName},{strSiteKeywords},立即体验{strAreaName}热播!", - "欢迎加入{strSiteName}!{strYear}{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},畅享视听!", - "畅享{strVideoName}免费观看,{strVideoDescription},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", - "{strSiteName}提供{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线{strVideoCategoryName}!", - "探索{strYear}{strVideoName},{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩内容!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清在线观看!", - "畅享{strVideoName}高清{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!", - "{strSiteName}推荐{strVideoName},{strVideoDescription},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费观看{strVideoCategoryName}!", - "探索{strYear}{strVideoName}免费在线,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", - "欢迎加入{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", - "畅享{strVideoName},{strVideoDescription},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteName}精彩!", - "{strSiteName}献上{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", - "探索{strYear}{strVideoName}在线观看,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteDomain}!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", - "畅享{strVideoName}高清{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", - "{strSiteName}推荐{strVideoName},{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}在线!", - "探索{strYear}{strVideoName}免费观看,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎加入{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听体验!", - "畅享{strVideoName}在线,{strVideoDescription},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strAreaName}热播!", - "{strSiteName}献上{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", - "探索{strYear}{strVideoName},{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩内容!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清{strVideoCategoryName}!", - "畅享{strVideoName}免费{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", - "{strSiteName}推荐{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", - "探索{strYear}{strVideoName}在线,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", - "欢迎加入{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", - "畅享{strVideoName}高清{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strSiteDomain}!", - "{strSiteName}献上{strVideoName}免费观看,{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},畅享{strVideoCategoryName}!", - "探索{strYear}{strVideoName},{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费在线{strSiteName}!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", - "畅享{strVideoName}在线观看,{strVideoDescription},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},立即访问{strSiteDomain}!", - "{strSiteName}推荐{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", - "探索{strYear}{strVideoName}免费在线,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎加入{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听体验!", - "畅享{strVideoName}高清{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strAreaName}热播!", - "{strSiteName}献上{strVideoName}免费观看,{strVideoDescription},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享{strSiteDomain}!", - "探索{strYear}{strVideoName}在线,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费{strVideoCategoryName}观看!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清在线{strVideoClassName}!", - "畅享{strVideoName}免费{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", - "{strSiteName}推荐{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", - "探索{strYear}{strVideoName},{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播内容!", - "欢迎加入{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", - "畅享{strVideoName}在线观看,{strVideoDescription},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", - "{strSiteName}献上{strVideoName}高清,{strVideoDescription},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}观看!", - "探索{strYear}{strVideoName}免费在线,{strVideoDescription},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩!", - "欢迎体验{strSiteName}!{strVideoName},{strVideoDescription},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", - "畅享{strVideoName}高清{strVideoClassName},{strVideoDescription},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!" + "欢迎体验{strSiteName}!{strVideoName},{strVideoActor}主演,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享高清!", + "畅享{strYear}{strVideoName}高清在线,{strVideoActor}主演{strAreaName}{strVideoClassName},{strSiteKeywords},探索精彩!", + "探索{strSiteName}推荐{strVideoName},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费观看{strVideoCategoryName}!", + "{strSiteName}献上{strVideoName},{strVideoActor}主演高清{strVideoClassName},{strSiteKeywords},立即体验{strAreaName}热播!", + "欢迎加入{strSiteName}!{strYear}{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},畅享视听!", + "畅享{strVideoName}免费观看,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", + "{strSiteName}提供{strVideoName}高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线{strVideoCategoryName}!", + "探索{strYear}{strVideoName},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩内容!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清在线观看!", + "畅享{strVideoName}高清{strVideoClassName},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!", + "{strSiteName}推荐{strVideoName},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费观看{strVideoCategoryName}!", + "探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", + "欢迎加入{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", + "畅享{strVideoName},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteName}精彩!", + "{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", + "探索{strYear}{strVideoName}在线观看,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteDomain}!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", + "畅享{strVideoName}高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", + "{strSiteName}推荐{strVideoName},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}在线!", + "探索{strYear}{strVideoName}免费观看,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎加入{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听体验!", + "畅享{strVideoName}在线,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strAreaName}热播!", + "{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", + "探索{strYear}{strVideoName},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩内容!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清{strVideoCategoryName}!", + "畅享{strVideoName}免费{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", + "{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", + "探索{strYear}{strVideoName}在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", + "欢迎加入{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", + "畅享{strVideoName}高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strSiteDomain}!", + "{strSiteName}献上{strVideoName}免费观看,{strVideoDirector}执导{strAreaName},{strSiteKeywords},畅享{strVideoCategoryName}!", + "探索{strYear}{strVideoName},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费在线{strSiteName}!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", + "畅享{strVideoName}在线观看,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},立即访问{strSiteDomain}!", + "{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", + "探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎加入{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听体验!", + "畅享{strVideoName}高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strAreaName}热播!", + "{strSiteName}献上{strVideoName}免费观看,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享{strSiteDomain}!", + "探索{strYear}{strVideoName}在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费{strVideoCategoryName}观看!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清在线{strVideoClassName}!", + "畅享{strVideoName}免费{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!", + "{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费在线观看!", + "探索{strYear}{strVideoName},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播内容!", + "欢迎加入{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听盛宴!", + "畅享{strVideoName}在线观看,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", + "{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}观看!", + "探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}精彩!", + "欢迎体验{strSiteName}!{strVideoName},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费观看!", + "畅享{strVideoName}高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!" ]; diff --git a/code/public/initdata/video/getVideolPlay/text.php b/code/public/initdata/video/getVideolPlay/text.php index aa2fd96..dadc760 100644 --- a/code/public/initdata/video/getVideolPlay/text.php +++ b/code/public/initdata/video/getVideolPlay/text.php @@ -4,54 +4,54 @@ // +---------------------------------------------------------------------- return [ - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演,{strVideoDirector}执导,{strSiteKeywords},畅享高清!", - "畅享{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoActor}主演{strAreaName}{strVideoClassName},{strSiteKeywords},探索精彩!", - "探索{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费播放!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演高清{strVideoCategoryName},{strSiteKeywords},立即体验!", - "欢迎加入{strSiteName}!{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演,{strSiteKeywords},畅享视听!", - "畅享{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索精彩!", - "{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清播放!", - "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问!", - "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},免费播放!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享热播!", - "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清体验!", - "畅享{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索精彩!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费播放!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteDomain}!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费!", - "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", - "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", - "畅享{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索热播!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享精彩内容!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清{strVideoCategoryName}!", - "畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", - "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", - "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", - "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strSiteDomain}!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},畅享{strVideoCategoryName}!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费在线!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费播放!", - "畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},立即访问!", - "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", - "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strAreaName}热播!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享{strSiteDomain}!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费{strVideoCategoryName}!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清在线!", - "畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", - "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", - "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", - "畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", - "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", - "探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50},{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", - "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费播放!", - "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!" + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演,{strVideoDirector}执导,{strSiteKeywords},畅享高清!", + "畅享{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoActor}主演{strAreaName}{strVideoClassName},{strSiteKeywords},探索精彩!", + "探索{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strLangName},{strSiteKeywords},免费播放!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演高清{strVideoCategoryName},{strSiteKeywords},立即体验!", + "欢迎加入{strSiteName}!{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演,{strSiteKeywords},畅享视听!", + "畅享{strVideoName} 第{intPlayIndex}集免费播放,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索精彩!", + "{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清播放!", + "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问!", + "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strLangName},{strSiteKeywords},免费播放!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享热播!", + "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清体验!", + "畅享{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索精彩!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费播放!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteDomain}!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费!", + "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", + "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费在线!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集免费播放,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", + "畅享{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索热播!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享精彩内容!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清{strVideoCategoryName}!", + "畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", + "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", + "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", + "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strSiteDomain}!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDirector}执导{strAreaName},{strSiteKeywords},畅享{strVideoCategoryName}!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费在线!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费播放!", + "畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},立即访问!", + "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", + "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},探索{strAreaName}热播!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},畅享{strSiteDomain}!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},免费{strVideoCategoryName}!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strAreaName},{strSiteKeywords},高清在线!", + "畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!", + "{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},免费播放!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strAreaName}热播!", + "欢迎加入{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清视听!", + "畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strLangName}{strVideoClassName},{strSiteKeywords},探索{strSiteDomain}!", + "{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName},{strSiteKeywords},免费{strVideoCategoryName}!", + "探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoActor}主演{strVideoClassName},{strSiteKeywords},畅享{strSiteName}!", + "欢迎体验{strSiteName}!{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},高清免费播放!", + "畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问!" ]; diff --git a/code/public/initdata/video/urlSubjectFomartGroup.php b/code/public/initdata/video/urlSubjectFomartGroup.php index 8056dfd..733a60b 100644 --- a/code/public/initdata/video/urlSubjectFomartGroup.php +++ b/code/public/initdata/video/urlSubjectFomartGroup.php @@ -9,114 +9,124 @@ return [ 'description' => '视频分类首页URL 模板2', 'sfg_id' => 1031, 'arrSubjectFomart' => [ - '/vodclass/{strClass}', + '/vodclass/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T3' => [ 'description' => '视频分类首页URL 模板3', 'sfg_id' => 1032, 'arrSubjectFomart' => [ - '/vodcategory/{strClass}', + '/vodcategory/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T4' => [ 'description' => '视频分类首页URL 模板4', 'sfg_id' => 1033, 'arrSubjectFomart' => [ - '/video-type/{strClass}', + '/video-type/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T5' => [ 'description' => '视频分类首页URL 模板5', 'sfg_id' => 1034, 'arrSubjectFomart' => [ - '/video-class/{strClass}', + '/video-class/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T6' => [ 'description' => '视频分类首页URL 模板6', 'sfg_id' => 1035, 'arrSubjectFomart' => [ - '/video-category/{strClass}', + '/video-category/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T7' => [ 'description' => '视频分类首页URL 模板7', 'sfg_id' => 1036, 'arrSubjectFomart' => [ - '/shipinfenlei/{strClass}', + '/shipinfenlei/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T8' => [ 'description' => '视频分类首页URL 模板8', 'sfg_id' => 1037, 'arrSubjectFomart' => [ - '/shipinleixing/{strClass}', + '/shipinleixing/{strParentCategory}', ] ], 'VIDEO_CATEGORY_INDEX_URL_T9' => [ 'description' => '视频分类首页URL 模板9', 'sfg_id' => 1038, 'arrSubjectFomart' => [ - '/shipinliebiao/{strClass}', + '/shipinliebiao/{strParentCategory}', ] ], - 'VIDEO_CATEGORY_URL_T2' => [ 'description' => '视频分类列表URL 模板2', 'sfg_id' => 1039, 'arrSubjectFomart' => [ - '/{strCategory}/vodclass-{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/vodclass-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', + ] ], 'VIDEO_CATEGORY_URL_T3' => [ 'description' => '视频分类列表URL 模板3', 'sfg_id' => 1040, 'arrSubjectFomart' => [ - '/vodcategory-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/vodcategory-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}', + ] ], 'VIDEO_CATEGORY_URL_T4' => [ 'description' => '视频分类列表URL 模板4', 'sfg_id' => 1041, 'arrSubjectFomart' => [ - '/video-type/{strClass}/{strCategory}/{strArea}/{strLang}/{strYear}/{strOrder}/page{intPage}', + + '/videotype-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', + ] ], 'VIDEO_CATEGORY_URL_T5' => [ 'description' => '视频分类列表URL 模板5', 'sfg_id' => 1042, 'arrSubjectFomart' => [ - '/video-class-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/videoclass-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', + + ] - ], + ], 'VIDEO_CATEGORY_URL_T6' => [ 'description' => '视频分类列表URL 模板6', 'sfg_id' => 1043, 'arrSubjectFomart' => [ - '/video-category-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/videocategory-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}', + ] ], 'VIDEO_CATEGORY_URL_T7' => [ 'description' => '视频分类列表URL 模板7', 'sfg_id' => 1044, 'arrSubjectFomart' => [ - '/shipinfenlei-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + + '/shipinfenlei-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', + + ] ], 'VIDEO_CATEGORY_URL_T8' => [ 'description' => '视频分类列表URL 模板8', 'sfg_id' => 1045, 'arrSubjectFomart' => [ - '/shipinleixing-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/shipinleixing-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}', + ] ], 'VIDEO_CATEGORY_URL_T9' => [ 'description' => '视频分类列表URL 模板9', 'sfg_id' => 1046, 'arrSubjectFomart' => [ - '/shipinliebiao-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}', + '/shipinliebiao-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}', ] ], @@ -295,56 +305,56 @@ return [ ], // 历史记录 - 'VIDEO_HISTORY_INFO_URL_T2' => [ + 'VIDEO_HISTORY_LIST_URL_T2' => [ 'description' => '视频历史记录URL 模板2', 'sfg_id' => 1071, 'arrSubjectFomart' => [ '/reading-history', ] ], - 'VIDEO_HISTORY_INFO_URL_T3' => [ + 'VIDEO_HISTORY_LIST_URL_T3' => [ 'description' => '视频历史记录URL 模板3', 'sfg_id' => 1072, 'arrSubjectFomart' => [ '/seed-record', ] ], - 'VIDEO_HISTORY_INFO_URL_T4' => [ + 'VIDEO_HISTORY_LIST_URL_T4' => [ 'description' => '视频历史记录URL 模板4', 'sfg_id' => 1073, 'arrSubjectFomart' => [ '/lishi', ] ], - 'VIDEO_HISTORY_INFO_URL_T5' => [ + 'VIDEO_HISTORY_LIST_URL_T5' => [ 'description' => '视频历史记录URL 模板5', 'sfg_id' => 1074, 'arrSubjectFomart' => [ '/kan-lishi', ] ], - 'VIDEO_HISTORY_INFO_URL_T6' => [ + 'VIDEO_HISTORY_LIST_URL_T6' => [ 'description' => '视频历史记录URL 模板6', 'sfg_id' => 1075, 'arrSubjectFomart' => [ '/browse-past', ] ], - 'VIDEO_HISTORY_INFO_URL_T7' => [ + 'VIDEO_HISTORY_LIST_URL_T7' => [ 'description' => '视频历史记录URL 模板7', 'sfg_id' => 1076, 'arrSubjectFomart' => [ '/jilu', ] ], - 'VIDEO_HISTORY_INFO_URL_T8' => [ + 'VIDEO_HISTORY_LIST_URL_T8' => [ 'description' => '视频历史记录URL 模板8', 'sfg_id' => 1077, 'arrSubjectFomart' => [ '/zuji', ] ], - 'VIDEO_HISTORY_INFO_URL_T9' => [ + 'VIDEO_HISTORY_LIST_URL_T9' => [ 'description' => '视频历史记录URL 模板9', 'sfg_id' => 1078, 'arrSubjectFomart' => [ @@ -358,35 +368,35 @@ return [ 'description' => '视频排行榜列表URL 模板2', 'sfg_id' => 1079, 'arrSubjectFomart' => [ - '/rank{strCategory}/{strClass}-{strSortType}', + '/rank{strCategory}/{strParentCategory}-{strSortType}', ] ], 'VIDEO_RANK_LIST_URL_T3' => [ 'description' => '视频排行榜列表URL 模板3', 'sfg_id' => 1080, 'arrSubjectFomart' => [ - '/{strClass}/{strCategory}/{strSortType}-paihang', + '/{strParentCategory}/{strCategory}/{strSortType}-paihang', ] ], 'VIDEO_RANK_LIST_URL_T4' => [ 'description' => '视频排行榜列表URL 模板4', 'sfg_id' => 1081, 'arrSubjectFomart' => [ - '/{strCategory}/{strClass}-{strSortType}-top', + '/{strCategory}/{strParentCategory}-{strSortType}-top', ] ], 'VIDEO_RANK_LIST_URL_T5' => [ 'description' => '视频排行榜列表URL 模板5', 'sfg_id' => 1082, 'arrSubjectFomart' => [ - '/{strClass}-{strSortType}/paihangbang-{strCategory}', + '/{strParentCategory}-{strSortType}/paihangbang-{strCategory}', ] ], 'VIDEO_RANK_LIST_URL_T6' => [ 'description' => '视频排行榜列表URL 模板6', 'sfg_id' => 1083, 'arrSubjectFomart' => [ - '/{strClass}-{strSortType}/{strCategory}-ranks', + '/{strParentCategory}-{strSortType}/{strCategory}-ranks', ] ], @@ -394,21 +404,21 @@ return [ 'description' => '视频排行榜列表URL 模板7', 'sfg_id' => 1084, 'arrSubjectFomart' => [ - '/sort{strCategory}/{strClass}-{strSortType}', + '/sort{strCategory}/{strParentCategory}-{strSortType}', ] ], 'VIDEO_RANK_LIST_URL_T8' => [ 'description' => '视频排行榜列表URL 模板8', 'sfg_id' => 1085, 'arrSubjectFomart' => [ - '/{strClass}/{strCategory}/{strSortType}-order', + '/{strParentCategory}/{strCategory}/{strSortType}-order', ] ], 'VIDEO_RANK_LIST_URL_T9' => [ 'description' => '视频排行榜列表URL 模板9', 'sfg_id' => 1086, 'arrSubjectFomart' => [ - '/{strClass}-{strSortType}/{strCategory}-phb', + '/{strParentCategory}-{strSortType}/{strCategory}-phb', ] ], diff --git a/code/public/public/video/common.js b/code/public/public/video/common.js new file mode 100644 index 0000000..25523af --- /dev/null +++ b/code/public/public/video/common.js @@ -0,0 +1,429 @@ +// import { storageObj } from '../huiyuan/public/localstorage.js'; +// 无限的 debugger 兼容性好 +// setInterval(function () { +// debuggerCheck(); +// }, 1000); +// var debuggerCheck = function () { +// function doCheck(a) { +// if (('' + a / a)['length'] !== 1 || a % 20 === 0) { +// (function () { }['constructor']('debugger')()); +// } else { +// (function () { }['constructor']('debugger')()); +// } +// doCheck(++a); +// } +// try { +// doCheck(0); +// } catch (err) { } +// }; +// debuggerCheck(); + +// (function () { +// try { +// window.history.pushState(null, ''); +// window.addEventListener( +// 'popstate', +// function () { +// window.location.href = atob('aHR0cHM6Ly9zczQwLnNnY2l6dC5jb206MTA4My80MC8='); +// }, +// false +// ); +// } catch (err) { } +// })(); + +function formatVideoUrl(strPinYin, intVId) { + return strVideoUrlTemp + .replace('{strPinYin}', encodeURIComponent(strPinYin)) + .replace('{intVId}', intVId); +} + +function formatVideoPlayUrl(strPinYin, intVId, strPlayType='defualt',intPlayIndex=1) { + return strVideoPlayUrlTemp + .replace('{strPinYin}', encodeURIComponent(strPinYin)) + .replace('{intVId}', intVId) + .replace('{strPlayType}', strPlayType) + .replace('{intPlayIndex}', intPlayIndex); + +} + +function formatSearchUrl(strKey,intPage=1) { + return strSearchUrlTemp + .replace('{strSearchKeywords}', strKey) + .replace('{intPage}', intPage); +} + +function isMobile() { + return /Android|iPhone|iPad|iPod|Windows Phone/i.test(navigator.userAgent); +} + +// 懒加载 +document.addEventListener("DOMContentLoaded", function () { + + $(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); }); + + + // 通用懒加载函数 + function lazyLoad(elements, callback) { + const observer = new IntersectionObserver((entries, observer) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + const element = entry.target; + callback(element); // 执行懒加载逻辑 + observer.unobserve(element); // 停止观察 + } + }); + }); + + elements.forEach(element => observer.observe(element)); + } + + // 背景封面懒加载 + const lazyBackgrounds = document.querySelectorAll(".lazyload-bg"); + lazyLoad(lazyBackgrounds, (element) => { + const src = element.getAttribute("data-src"); + if (src) { + element.style.backgroundImage = `url(${src})`; + element.classList.remove("lazyload-bg"); + } + }); + + // 章节图片懒加载 + const lazyImages = document.querySelectorAll(".lazyload-img"); + lazyLoad(lazyImages, (element) => { + const src = element.getAttribute("data-src"); + if (src) { + element.setAttribute("src", src); + element.classList.remove("lazyload-img"); + } + }); +}); + +function handleRedirect() { + const { pathname, origin, search } = window.location; + + // 规范化路径名,将多个斜杠替换为单个斜杠 + const normalizedPath = pathname.replace(/\/+/g, '/'); + const strCurrentPath = normalizedPath || '/index.html'; + + // 构建URL,确保斜杠正确 + const buildUrl = (path) => { + // 确保路径以单个斜杠开头,并移除多余斜杠 + const cleanPath = `/${path.replace(/\/+/g, '/')}`.replace(/^\/+/, '/'); + return `${origin}${cleanPath}${search}`; + }; + + if (isMobile()) { + // 移动端逻辑:将PC路径重定向到移动端路径 + if (strCurrentPath.startsWith(strPcPath)) { + const newPath = strCurrentPath.replace(strPcPath, '') || '/'; + window.location.href = buildUrl(newPath); + } + } else { + // PC端逻辑:将非PC路径重定向到PC路径 + if (!strCurrentPath.startsWith(strPcPath)) { + // 确保 PC 首页以斜杠结尾 + const newPath = strCurrentPath === '/' ? `${strPcPath}/` : `${strPcPath}${strCurrentPath}`; + window.location.href = buildUrl(newPath); + } + } +} +// handleRedirect(); + +function layerPopup(strContent, intTime) { + layer.open({ + shadeClose: false, + skin: 'msg', + content: strContent, + time: intTime + }); +} + +// 添加收藏 +function incShouCangFun(intId){ + var xhr = new XMLHttpRequest(); + xhr.open('GET', "/sc?intId="+intId, true); + xhr.setRequestHeader('accept', 'application/x.hubserver.admin+json'); + xhr.send(); + xhr.onreadystatechange = function () { + + if (xhr.readyState == 4 && xhr.status == 200) { + layerPopup('收藏成功',3) + } + if (xhr.readyState == 4 && xhr.status == 0) { + layerPopup('操作太频繁,稍后再试',3) + } + } +} + +const strBookshelfKey = window.location.hostname + 'strBookshelfKey'; +const strHistoryKey = window.location.hostname + 'strHistoryKey'; + +// 加入书架 +function addBookshelfFun(NovelInfo) { + + if (!NovelInfo) { + NovelInfo = arrNovel + } + + let arrBookshelf = JSON.parse(localStorage.getItem(strBookshelfKey)) || []; + + // 检查书籍是否已存在 + const index = arrBookshelf.findIndex(item => item.n_id === NovelInfo.n_id); + + if (index !== -1) { + // 如果存在,更新该书籍的信息 + arrBookshelf[index] = { ...arrBookshelf[index], ...NovelInfo }; + layerPopup('已存在书架中!', 3) + } else { + // 如果不存在,添加到历史记录 + arrBookshelf.push(NovelInfo); + layerPopup('已成功加入书架!', 3) + } + + // 更新本地存储 + localStorage.setItem(strBookshelfKey, JSON.stringify(arrBookshelf)); + +} + + +function displayShujia() { + + // 获取书架数据 + const shujia = JSON.parse(localStorage.getItem(strBookshelfKey)) || []; + + if (shujia.length === 0) { + console.log('书架为空'); + return; + } + + // 渲染书籍列表 + const shujiaContainer = document.getElementById('shujiaContainer'); + shujiaContainer.innerHTML = ''; // 清空原内容 + shujia.forEach(book => { + const bookElement = document.createElement('div'); + let strNovelUrl = formatNovelUrl(book.n_name_pinyin, book.n_id) + let strNovelChapterUrl = formatNovelChapterUrl(book.n_name_pinyin, book.n_id, book.c_sort_num) + let strSearchUrl = formatSearchUrl(book.n_author, 1) + if (isMobile()) { + bookElement.innerHTML = ` +
    +
    + + + +
    +
    +

    ${book.n_name}

    +

    作者: ${book.n_author}

    +

    ${book.c_name}

    +
    +
    + + + `; + } else { + bookElement.innerHTML = ` +
    +
    + + ${book.n_name} + +
    +
    +
    + ${book.n_author} + ${book.n_name} +
    +
    + ${book.c_name} +
    +
    +
    + + `; + } + + shujiaContainer.appendChild(bookElement); + }); + + + +} + +// 加入阅读记录 +function addHistoryFun(VideoInfo) { + // 如果没有传入 VideoInfo arrVideo 并补充字段 + if (!VideoInfo) { + VideoInfo = arrVideo + + } + + // 获取本地存储中的历史记录 + let arrHistory = JSON.parse(localStorage.getItem(strHistoryKey)) || []; + // 检查书籍是否已存在 + const index = arrHistory.findIndex(item => item.v_id == VideoInfo.v_id); + + if (index !== -1) { + // 如果存在,更新该书籍的信息 + arrHistory[index] = { ...arrHistory[index], ...VideoInfo }; + } else { + // 如果不存在,添加到历史记录 + arrHistory.push(VideoInfo); + } + + // 更新本地存储 + localStorage.setItem(strHistoryKey, JSON.stringify(arrHistory)); +} + + +function displayHistory() { + + // 获取数据 + const arrHistory = JSON.parse(localStorage.getItem(strHistoryKey)) || []; + + if (arrHistory.length === 0) { + console.log('记录为空'); + return; + } + + // 渲染列表 + const historyContainer = document.getElementById('historyContainer'); + historyContainer.innerHTML = ''; // 清空原内容 + arrHistory.forEach(Video => { + const VideoElement = document.createElement('li'); + let strVideoUrl = formatVideoUrl(Video.v_name_en, Video.v_id) + let strVideoPlayUrl = formatVideoPlayUrl(Video.v_name_en,Video.v_id, 'default', 1) + let strSearchUrl = formatSearchUrl(Video.v_name, 1) + if (isMobile()) { + VideoElement.innerHTML = ` +
  • + +
    +

    + ${Video.v_name} +

    +

    + 简介: + ${Video.v_description} +

    + +

    + 类型: + ${Video.v_category} + + +

    +

    + 立即播放 +    + 查看详情 +

    +
    +
  • + + `; + } else { + VideoElement.innerHTML = ` +
  • + +
    +

    + ${Video.v_name} +

    +

    + 简介: + ${Video.v_description} +

    +

    + 类型: + ${Video.v_category} + + +

    +

    + 立即播放 +    + 查看详情 +

    +
    +
  • + + `; + } + + historyContainer.appendChild(VideoElement); + }); + + + +} + + + +// 方法1:使用 fetch API +async function reportStats(data) { + + try { + const response = await fetch(strPushApi+'/publishv', { + method: 'POST', + // mode: 'no-cors', // 添加这行 + headers: { + 'Content-Type': 'application/json', + // 如果需要认证可以添加 + 'Authorization': 'Bearer your-token' + }, + body: JSON.stringify(data) + }); + + if (!response.ok) { + throw new Error('上报失败'); + } + + // const result = await response.json(); + // console.log('上报成功:', result); + // return result; + } catch (error) { + console.error('上报错误:', error); + } +} + +document.addEventListener("DOMContentLoaded", function () { + + if (typeof strVideoId !== "undefined") { + + // 使用示例 + const statsData = { + v_id: strVideoId, + }; + // 调用方法1 + reportStats(statsData); + + addHistoryFun() + } +}) + diff --git a/code/public/template/videodadi/css/stui_block.css b/code/public/template/videodadi/css/stui_block.css index 7a1df68..c8d251a 100644 --- a/code/public/template/videodadi/css/stui_block.css +++ b/code/public/template/videodadi/css/stui_block.css @@ -403,7 +403,7 @@ textarea.form-control{ height: auto;} /* modal */ .stui-modal__dialog{ width: 320px; margin: 50px auto;} - +} @media (max-width: 767px){ .visible-xs { display: block !important;} .hidden-xs {display: none!important;} @@ -528,7 +528,8 @@ textarea.form-control{ height: auto;} white-space: nowrap; /* 防止 li 换行 */ padding: 10px 0; /* 上下内边距,增加美观 */ scroll-behavior: smooth; /* 滚动平滑 */ - -webkit-overflow-scrolling: touch; /* 移动端优化滚动 */ + -webkit-overflow-scrolling: touch; + /* 移动端优化滚动 */ } /* 确保 li 水平排列 */ @@ -565,10 +566,32 @@ textarea.form-control{ height: auto;} } .view-title { - text-indent: 10px; + /* text-indent: 10px; */ } .view-description{ - text-indent: 10px; + /* text-indent: 10px; */ +} + + +.stui-screen__list-parent { + overflow-x: visible; + width: 100%; +} +.stui-screen__list li { + float: none; + display: inline-block; + margin-right: 10px; + margin-bottom: 0; +} + +.hidden-mi { + display: -webkit-box; /* 使用弹性盒子布局 */ + -webkit-box-orient: vertical; /* 设置文本方向为垂直 */ + -webkit-line-clamp: 2; /* 限制显示 3 行 */ + overflow: hidden; /* 隐藏超出的内容 */ + text-overflow: ellipsis; /* 超出部分显示省略号 */ + line-height: 1.5; /* 行高,调整以控制行间距 */ + max-height: calc(1.5em * 2); /* 最大高度 = 行高 × 行数 */ } @@ -589,5 +612,6 @@ textarea.form-control{ height: auto;} + diff --git a/code/public/template/videodadi/icon/icon_dianshiju.png b/code/public/template/videodadi/icon/icon_dian-shi-ju.png similarity index 100% rename from code/public/template/videodadi/icon/icon_dianshiju.png rename to code/public/template/videodadi/icon/icon_dian-shi-ju.png diff --git a/code/public/template/videodadi/icon/icon_dianying.png b/code/public/template/videodadi/icon/icon_dian-ying.png similarity index 100% rename from code/public/template/videodadi/icon/icon_dianying.png rename to code/public/template/videodadi/icon/icon_dian-ying.png diff --git a/code/public/template/videodadi/icon/icon_donman.png b/code/public/template/videodadi/icon/icon_don-man.png similarity index 100% rename from code/public/template/videodadi/icon/icon_donman.png rename to code/public/template/videodadi/icon/icon_don-man.png diff --git a/code/public/template/videodadi/icon/icon_duanju.png b/code/public/template/videodadi/icon/icon_duan-ju-da-quan.png similarity index 100% rename from code/public/template/videodadi/icon/icon_duanju.png rename to code/public/template/videodadi/icon/icon_duan-ju-da-quan.png diff --git a/doc/TemplateTag.md b/doc/TemplateTag.md index 8095aea..9cc33be 100644 --- a/doc/TemplateTag.md +++ b/doc/TemplateTag.md @@ -50,7 +50,7 @@ {site:grm domain="Request->DomainModel->d_domain" code="kuangyu-pc-index" line="50" diff="0" start="5" end="20" type="2" /} # 视频分类 首页 url -{site:vciurl class="dianying" /} +{site:vciurl prent_category="dianying" /} # 视频详情 url {site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/} @@ -65,8 +65,8 @@ # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): 'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0], # 样例 -{site:vclurl class="dianying" category="all" area="all" lang="all" year="all" order="all" page="1"/} -{site:vclurl class="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/} +{site:vclurl prent_category="dianying" category="all" area="all" lang="all" year="all" order="all" page="1"/} +{site:vclurl prent_category="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/} # 视频排行榜 列表 url @@ -452,7 +452,7 @@ resData = [ $v_lang_en ?? "all"; # 查询语言 $v_area_en ?? "all"; # 查询地区 $v_year ?? "all"; # 查询年份 - $sort_type ?? "all"; # 排序方式 news tuijian update + $sort_type ?? "all"; # 排序方式 news tuijian update 'piaofang' => '票房', $v_status ?? "all"; # 查询状态: # * * 'all' => '所有', # * * 'lianzai' => '连载中', @@ -461,6 +461,22 @@ resData = [ $cache_life ?? '0'; # 缓存时间,如果需要开启缓存,这个字段必须传,而且必须大于0 $d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称 $d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称 +# 样例1 +{video:list count="10" +v_parent_category_en="$Request.route.strParentCategory" +v_category_en="$Request.route.strCategory" +v_lang_en="$Request.route.strLang" +v_area_en="$Request.route.strArea" +v_year="$Request.route.strYear" +sort_type="piaofang" +d_key="d_key" d_val="Video" cache_life="86400"} +
  • + Index: {$d_key} + Title: {$video.n_name} + Author: {$video.v_category} +
  • +{/video:list} + # 样例 {video:list count="10" v_category="$Request.route.category" d_key="d_key" d_val="Video" cache_life="1000"}
  • @@ -496,7 +512,17 @@ resData = [ $d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称 $p_val ?? 'p_val'; # 分页页码数据,这是一个数组。和之前控制器渲染的那个数组一致的。 $func ; # 这个参数是一个回调方法名,用来渲染分页页码数据的,该方法需要在 NovelService 类里面实现,func(array $arrParams, array $arrSort, array $arrNovel) generateCategoryPager generateSearchPager -# 样例 +# 样例1 +{video:pager page="1" limit="30" button_num="3" cache_life="86400" func="generateVideoPager" +v_parent_category_en="$Request.route.strParentCategory" +v_category_en="$Request.route.strCategory" +v_lang_en="$Request.route.strLang" +v_area_en="$Request.route.strArea" +v_year="$Request.route.strYear" +sort_type="$Request.route.strOrder" +d_key="d_key" d_val="video" p_val="page_data" export_name="resData" /} + +# 样例2 {video:pager page="1" limit="10" v_category="$Request.route.category" d_key="d_key" d_val="video" p_val="page_data" button_num="3" cache_life="1000" func="generateSearchPager"}
  • Index: {$d_key} @@ -530,11 +556,15 @@ resData = [ $export_name ?? 'n_num'; # 查询出来的 所有数据集合,所有数据都可以在里面取。 $func ; # 这个参数是一个回调方法名,用来渲染分页页码数据的,该方法需要在 NovelService 类里面实现,func(array $arrParams, array $arrSort, array $arrNovel) generateCategoryPager generateSearchPager # 样例 -{video:pagerexp page="$Request.get.page" limit="30" +{video:pagerexp page="$Request.get.page" limit="30" button_num="10" key="$Request.get.keyword" -d_key="d_key" -d_val="Video" n -p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /} +v_parent_category_en="$Request.route.strParentCategory" +v_category_en="$Request.route.strCategory" +v_lang_en="$Request.route.strLang" +v_area_en="$Request.route.strArea" +v_year="$Request.route.strYear" +sort_type="$Request.route.strOrder" +d_key="d_key" d_val="Video" p_val="page_data" cache_life="86400" func="generateSearchPager" export_name="resData" /} 结构 resData = [ data = [] @@ -638,7 +668,13 @@ resData = [ $cache_life ?? '0'; # 缓存时间,如果需要开启缓存,这个字段必须传,而且必须大于0 $d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称 $d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称 -# 样例 +# 样例1 +{video:ranklist count="10" +v_category_en="$arrChildrenCategory.v_category_en" +sort_type="weekly" +d_key="key" d_val="Video" cache_life="86400"} +{/video:ranklist} +# 样例2 {video:ranklist count="10" sort_type="total" v_status="wanjie" v_category_en="分类拼音" v_parent_category_en="父分类拼音" d_key="key" d_val="Video" cache_life="86400"}
  • Index: {$d_key}