From 3586074c2512137d5032c789e9fae4f173766725 Mon Sep 17 00:00:00 2001
From: make
Date: Sat, 5 Jul 2025 15:55:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8C=89seo=E9=9C=80=E6=B1=82=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9=E7=AB=99=E7=82=B9=E5=9C=B0=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
code/app/home/config/router.php | 75 ++++++---
.../home/view/videoBoKu/public/footer.html | 22 ++-
code/app/home/view/videoBoKu/rss/baidu.xml | 40 +++++
code/app/home/view/videoBoKu/rss/so.xml | 18 +++
.../app/home/view/videoBoKu/video/getMap.html | 152 ++++++++++++++++++
.../home/view/videoDadi/public/footer.html | 15 +-
code/app/home/view/videoDadi/rss/baidu.xml | 40 +++++
code/app/home/view/videoDadi/rss/so.xml | 18 +++
.../app/home/view/videoDadi/video/getMap.html | 144 +++++++++++++++++
.../home/view/videoDingZhu/public/footer.html | 34 ++--
code/app/home/view/videoDingZhu/rss/baidu.xml | 40 +++++
code/app/home/view/videoDingZhu/rss/so.xml | 18 +++
.../home/view/videoDingZhu/video/getMap.html | 130 +++++++++++++++
.../app/home/view/videoFengNiao/rss/baidu.xml | 40 +++++
.../home/view/videoLaoNiu/public/footer.html | 26 +--
code/app/home/view/videoLaoNiu/rss/baidu.xml | 40 +++++
code/app/home/view/videoLaoNiu/rss/so.xml | 18 +++
.../home/view/videoLaoNiu/video/getMap.html | 146 +++++++++++++++++
.../home/view/videoNuNu/public/footer.html | 24 +++
code/app/home/view/videoNuNu/rss/baidu.xml | 40 +++++
code/app/home/view/videoNuNu/rss/so.xml | 18 +++
.../app/home/view/videoNuNu/video/getMap.html | 146 +++++++++++++++++
code/app/home/view/xiongMao/rss/baidu.xml | 40 +++++
code/app/services/SiteContext.php | 7 +-
.../template/videodadi/css/stui_block.css | 78 ++++++++-
.../template/videonunu/css/stui_block.css | 75 ++++++++-
.../template/videonunu/css/stui_default.css | 2 +-
doc/t推荐视频列表-草稿.md | 98 +++++++++++
doc/代理整理.md | 22 +++
doc/小说推荐列表草稿.md | 57 +++++++
30 files changed, 1554 insertions(+), 69 deletions(-)
create mode 100644 code/app/home/view/videoBoKu/rss/baidu.xml
create mode 100644 code/app/home/view/videoBoKu/rss/so.xml
create mode 100644 code/app/home/view/videoBoKu/video/getMap.html
create mode 100644 code/app/home/view/videoDadi/rss/baidu.xml
create mode 100644 code/app/home/view/videoDadi/rss/so.xml
create mode 100644 code/app/home/view/videoDadi/video/getMap.html
create mode 100644 code/app/home/view/videoDingZhu/rss/baidu.xml
create mode 100644 code/app/home/view/videoDingZhu/rss/so.xml
create mode 100644 code/app/home/view/videoDingZhu/video/getMap.html
create mode 100644 code/app/home/view/videoFengNiao/rss/baidu.xml
create mode 100644 code/app/home/view/videoLaoNiu/rss/baidu.xml
create mode 100644 code/app/home/view/videoLaoNiu/rss/so.xml
create mode 100644 code/app/home/view/videoLaoNiu/video/getMap.html
create mode 100644 code/app/home/view/videoNuNu/rss/baidu.xml
create mode 100644 code/app/home/view/videoNuNu/rss/so.xml
create mode 100644 code/app/home/view/videoNuNu/video/getMap.html
create mode 100644 code/app/home/view/xiongMao/rss/baidu.xml
create mode 100644 doc/t推荐视频列表-草稿.md
create mode 100644 doc/代理整理.md
create mode 100644 doc/小说推荐列表草稿.md
diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php
index 8411e1a..19b78eb 100644
--- a/code/app/home/config/router.php
+++ b/code/app/home/config/router.php
@@ -9,17 +9,40 @@ use app\services\SiteContext;
use think\facade\Route;
-Route::get('/article/fenlei/:category', function (\think\Request $Request, SiteContext $SiteContext) {
- return view('test/test01/index.html');
-});
+// Route::get('/article/fenlei/:category', function (\think\Request $Request, SiteContext $SiteContext) {
+// return view('test/test01/index.html');
+// });
/**
- * Sitemap
+ * robots
*/
Route::get('/robots', function (\think\Request $Request, SiteContext $SiteContext) {
return view('sitemap/robots.txt');
})->ext('txt');
+/**
+ * Sitemap
+ */
+Route::get('/sitemap', function (\think\Request $Request, SiteContext $SiteContext) {
+ return view('video/getMap.html');
+})->ext('html');
+
+/**
+ * /rss/baidu
+ */
+Route::get('rss/baidu', function () {
+ return view('rss/baidu.xml')
+ ->contentType('text/xml');
+})->ext('xml');
+
+/**
+ * /rss/so
+ */
+Route::get('rss/so', function () {
+ return view('rss/so.xml')
+ ->contentType('text/xml');
+})->ext('xml');
+
/**
* Sitemap 索引文件
*/
@@ -67,6 +90,14 @@ Route::get('/sitemap-chapters-:page', function (\think\Request $Request, SiteCon
// return view('sitemap/sitemap-chapters.xml');
})->ext('xml');
+/**
+ * 视频详情页面。
+ */
+Route::get('/sitemap-videos-:page', function (\think\Request $Request, SiteContext $SiteContext) {
+ return $SiteContext->getSiteMapByCode('VIDEO');
+ // return view('sitemap/sitemap-books.xml');
+})->ext('xml');
+
/**
* 搜索首页
@@ -680,26 +711,26 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
case 'search':
//搜素
- // $strView = 'pc/getSearchNovel.html';
- // if ($platform == 'h5') {
- // $strView = 'novel/getSearchNovel.html';
- // }
- // Route::get($strRoute, function () use ($strView) {
- // return view($strView);
- // })->ext('html');
- // break;
+ $strView = 'pc/getSearchNovel.html';
+ if ($platform == 'h5') {
+ $strView = 'novel/getSearchNovel.html';
+ }
+ Route::get($strRoute, function () use ($strView) {
+ return view($strView);
+ })->ext('html');
+ break;
// 首页
- if ($platform == 'h5') {
- Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
- return view($SiteContext->getHomeView('h5'));
- });
- } else {
- Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
- return view($SiteContext->getHomeView('pc'));
- });
- }
- break;
+ // if ($platform == 'h5') {
+ // Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
+ // return view($SiteContext->getHomeView('h5'));
+ // });
+ // } else {
+ // Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
+ // return view($SiteContext->getHomeView('pc'));
+ // });
+ // }
+ // break;
case 'user':
//用户中心
diff --git a/code/app/home/view/videoBoKu/public/footer.html b/code/app/home/view/videoBoKu/public/footer.html
index 389a3eb..479885d 100644
--- a/code/app/home/view/videoBoKu/public/footer.html
+++ b/code/app/home/view/videoBoKu/public/footer.html
@@ -35,19 +35,15 @@
(我们会在3个工作日内删除侵权内容,谢谢。)
{$DomainModel->d_name}是一个优质影视资源网站,免费提供最新电影、热播电视剧、综艺节目、动漫、短剧等影视作品在线观看,看电影追剧首选{$DomainModel->d_name}。
反馈邮箱:{site:cfg code="YOU_XIANG" encode="false"/}
-
- XML地图
- 网站地图
- {ad:list code="YOUQING_LIANJIE_GUANG_GAO" order="desc" limit="2" id="ad"}
- {$ad.gg_wen_zi}
-
- {/ad:list}
-
+
+ 网站地图
+
+ 百度Sitemap
+
+ 360Sitemap
+
+ XML网站地图
+
Copyright © 2008-2023 by {$DomainModel->d_name} 统计代码
diff --git a/code/app/home/view/videoBoKu/rss/baidu.xml b/code/app/home/view/videoBoKu/rss/baidu.xml
new file mode 100644
index 0000000..10eaad4
--- /dev/null
+++ b/code/app/home/view/videoBoKu/rss/baidu.xml
@@ -0,0 +1,40 @@
+
+
+
+ {$DomainModel->d_name}
+ {$DomainModel->d_description}
+ www.{$DomainModel->d_domain}
+ zh-cn
+ {$DomainModel->d_name}
+ Rss Powered By www.{$DomainModel->d_domain}
+
+ {video:list count="30"
+ v_category_en="all"
+ v_lang_en="all"
+ v_area_en="all"
+ v_year="all"
+ sort_type="news"
+ d_key="d_key" d_val="Video" cache_life="86400"}
+ -
+
+ {$Video.v_remarks}
+
+ https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}
+
+ {volist name='$Video.v_actor' id='vo' key='index'}
+ {$vo} ,
+ {/volist}
+
+ {$Video.v_publish_date}
+
+]]>
+
+
+ {/video:list}
+
+
+
\ No newline at end of file
diff --git a/code/app/home/view/videoBoKu/rss/so.xml b/code/app/home/view/videoBoKu/rss/so.xml
new file mode 100644
index 0000000..f2880ba
--- /dev/null
+++ b/code/app/home/view/videoBoKu/rss/so.xml
@@ -0,0 +1,18 @@
+
+
+{video:list count="1000"
+v_category_en="all"
+v_lang_en="all"
+v_area_en="all"
+v_year="all"
+sort_type="news"
+d_key="d_key" d_val="Video" cache_life="86400"}
+
+
+https://www.{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}
+{$Video.v_publish_date}
+
+
+{/video:list}
+
+
\ No newline at end of file
diff --git a/code/app/home/view/videoBoKu/video/getMap.html b/code/app/home/view/videoBoKu/video/getMap.html
new file mode 100644
index 0000000..a8284f4
--- /dev/null
+++ b/code/app/home/view/videoBoKu/video/getMap.html
@@ -0,0 +1,152 @@
+{extend name="base" /}
+
+{block name="get-data"}
+{video:pagerexp page="$Request.get.page" limit="12"
+key="$Request.get.keyword"
+d_key="d_key"
+d_val="Video"
+p_val="page_data" button_num="5" cache_life="3600" func="generateSearchPager" export_name="resData" /}
+{site:grm page_code="h5_video_search" diff="0" num="30" g_key="arrGrm" /}
+{/block}
+
+
+{block name="title"}{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}{/block}
+{block name="keywords"}{site:replace code="VIDEO@GETSEARCHVIDEO@KEYWORDS"}{/block}
+{block name="description"}{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}{/block}
+
+
+{block name="head"}
+
+
+
+
+
+
+
+
+
+
+{// 结构化数据}
+
+{/block}
+
+
+{block name="head-css"}
+
+{/block}
+
+{block name="head-js"}
+
+{/block}
+
+{block name="main"}
+
+
+
+
+ {video:categorytype category_type="ONE" d_key="key" d_val="val"}
+
+
+ {/video:categorytype}
+
+
+
+
+
+
+
+{/block}
+{block name="customize"}
+
+{/block}
\ No newline at end of file
diff --git a/code/app/home/view/videoDadi/public/footer.html b/code/app/home/view/videoDadi/public/footer.html
index fd00ad4..0aece84 100644
--- a/code/app/home/view/videoDadi/public/footer.html
+++ b/code/app/home/view/videoDadi/public/footer.html
@@ -2,9 +2,7 @@

友情连接:
-
-
XML地图
-
网站地图
+
{ad:list code="YOUQING_LIANJIE_GUANG_GAO" order="desc" limit="2" id="ad"}
{$ad.gg_wen_zi}
@@ -13,8 +11,19 @@
+