From 9c2d7e54c5daac38aeaea29f2862db05ae35d81f Mon Sep 17 00:00:00 2001 From: make Date: Tue, 27 May 2025 21:24:45 +0800 Subject: [PATCH] debug --- code/app/home/config/router.php | 44 ++++++++++++++----- .../view/videoBoKu/video/getVideoInfo.html | 24 ++++++---- .../view/videoBoKu/video/getVideoPlayUrl.html | 9 ++++ .../view/videoDadi/video/getVideoPlayUrl.html | 23 ++++++++++ .../view/videoDingZhu/video/getVideoInfo.html | 29 ++++++++++-- .../videoDingZhu/video/getVideoPlayUrl.html | 18 ++++++++ .../view/videoLaoNiu/video/getVideoInfo.html | 23 ++++++++-- .../videoLaoNiu/video/getVideoPlayUrl.html | 15 +++++++ .../view/videoNuNu/video/getVideoInfo.html | 26 +++++++++-- .../view/videoNuNu/video/getVideoPlayUrl.html | 18 ++++++++ 10 files changed, 200 insertions(+), 29 deletions(-) diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 8a5d53b..799d510 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -499,13 +499,25 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { case 'video_search': //搜素 - $strView = 'pc/getSearchVideo.html'; + // $strView = 'pc/getSearchVideo.html'; + // if ($platform == 'h5') { + // $strView = 'video/getSearchVideo.html'; + // } + // Route::get($strRoute, function () use ($strView) { + // return view($strView); + // })->ext('html'); + // break; + + // 首页 if ($platform == 'h5') { - $strView = 'video/getSearchVideo.html'; + 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')); + }); } - Route::get($strRoute, function () use ($strView) { - return view($strView); - })->ext('html'); break; case 'video_history': @@ -668,13 +680,25 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { case 'search': //搜素 - $strView = 'pc/getSearchNovel.html'; + // $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') { - $strView = 'novel/getSearchNovel.html'; + 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')); + }); } - Route::get($strRoute, function () use ($strView) { - return view($strView); - })->ext('html'); break; case 'user': diff --git a/code/app/home/view/videoBoKu/video/getVideoInfo.html b/code/app/home/view/videoBoKu/video/getVideoInfo.html index d141fd1..bf5e9f4 100644 --- a/code/app/home/view/videoBoKu/video/getVideoInfo.html +++ b/code/app/home/view/videoBoKu/video/getVideoInfo.html @@ -2,11 +2,14 @@ {block name="get-data"} -{if $Request.route.intVId} -{video:info v_id="$Request.route.intVId" v_key="arrVideo" /} +{if $Request.route.intVId && $Request.route.intVForgeId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" v_fid="$Request.route.intVForgeId" /} +{elseif $Request.route.intVId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" /} {else} -{video:info v_id="$DomainModel->info_id" n_key="arrVideo" n_forge_id="0" /} + {video:info v_id="$DomainModel->info_id" n_key="arrVideo" /} {/if} + {site:grm page_code="h5_video_info" diff="$arrVideo.v_id" num="120" g_key="arrGrm" /} {/block} @@ -247,7 +250,7 @@ - +
@@ -258,12 +261,15 @@
- +

+ {/if} 《{$arrVideo.v_name}》是一部在 {volist name='$arrVideo.v_area' id='vo' key='index'} diff --git a/code/app/home/view/videoBoKu/video/getVideoPlayUrl.html b/code/app/home/view/videoBoKu/video/getVideoPlayUrl.html index ad02171..b57b171 100644 --- a/code/app/home/view/videoBoKu/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoBoKu/video/getVideoPlayUrl.html @@ -304,6 +304,15 @@
+ {if !empty($arrVideo.v_seo_words)} + + {/if}

导演: {volist name='$arrVideo.v_director' id='vo' key='index'} diff --git a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html index ba906db..8863776 100644 --- a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html @@ -256,6 +256,29 @@

+ {if !empty($arrVideo.v_seo_words)} +
+
+
+
+

+ 相关推荐 +

+
+
+
+

+ + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +

+
+
+
+ {/if} +
diff --git a/code/app/home/view/videoDingZhu/video/getVideoInfo.html b/code/app/home/view/videoDingZhu/video/getVideoInfo.html index 0d36ecb..4a21401 100644 --- a/code/app/home/view/videoDingZhu/video/getVideoInfo.html +++ b/code/app/home/view/videoDingZhu/video/getVideoInfo.html @@ -2,10 +2,12 @@ {block name="get-data"} -{if $Request.route.intVId} -{video:info v_id="$Request.route.intVId" v_key="arrVideo" /} +{if $Request.route.intVId && $Request.route.intVForgeId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" v_fid="$Request.route.intVForgeId" /} +{elseif $Request.route.intVId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" /} {else} -{video:info v_id="$DomainModel->info_id" n_key="arrVideo" n_forge_id="0" /} + {video:info v_id="$DomainModel->info_id" n_key="arrVideo" /} {/if} {site:grm page_code="h5_video_info" diff="$arrVideo.v_id" num="120" g_key="arrGrm" /} @@ -279,6 +281,24 @@
+ {if !empty($arrVideo.v_seo_words)} +
+
+
+
+

相似推荐

+
+
+
+ {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
+
+
+ {/if} +
@@ -291,7 +311,8 @@
  • - {$arrVideo.v_description|raw}
    + {$arrVideo.v_description|raw} +
  • diff --git a/code/app/home/view/videoDingZhu/video/getVideoPlayUrl.html b/code/app/home/view/videoDingZhu/video/getVideoPlayUrl.html index d280b05..c5e4969 100644 --- a/code/app/home/view/videoDingZhu/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoDingZhu/video/getVideoPlayUrl.html @@ -290,6 +290,24 @@
    + {if !empty($arrVideo.v_seo_words)} +
    +
    +
    +
    +

    相似推荐

    +
    +
    +
    + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
    +
    +
    + {/if} +
    diff --git a/code/app/home/view/videoLaoNiu/video/getVideoInfo.html b/code/app/home/view/videoLaoNiu/video/getVideoInfo.html index 768c339..68b6f0b 100644 --- a/code/app/home/view/videoLaoNiu/video/getVideoInfo.html +++ b/code/app/home/view/videoLaoNiu/video/getVideoInfo.html @@ -2,10 +2,12 @@ {block name="get-data"} -{if $Request.route.intVId} -{video:info v_id="$Request.route.intVId" v_key="arrVideo" /} +{if $Request.route.intVId && $Request.route.intVForgeId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" v_fid="$Request.route.intVForgeId" /} +{elseif $Request.route.intVId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" /} {else} -{video:info v_id="$DomainModel->info_id" n_key="arrVideo" n_forge_id="0" /} + {video:info v_id="$DomainModel->info_id" n_key="arrVideo" /} {/if} {site:grm page_code="h5_video_info" diff="$arrVideo.v_id" num="120" g_key="arrGrm" /} @@ -237,6 +239,20 @@
    + + {if !empty($arrVideo.v_seo_words)} +
    +
    +

    相似推荐

    +
    +
    + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
    +
    + {/if}
    @@ -249,6 +265,7 @@
    +

    播放列表

    diff --git a/code/app/home/view/videoLaoNiu/video/getVideoPlayUrl.html b/code/app/home/view/videoLaoNiu/video/getVideoPlayUrl.html index 90816b5..7ecbc6e 100644 --- a/code/app/home/view/videoLaoNiu/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoLaoNiu/video/getVideoPlayUrl.html @@ -228,6 +228,21 @@
    + + {if !empty($arrVideo.v_seo_words)} +
    +
    +

    相似推荐

    +
    +
    + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
    +
    + {/if} +

    剧情介绍

    diff --git a/code/app/home/view/videoNuNu/video/getVideoInfo.html b/code/app/home/view/videoNuNu/video/getVideoInfo.html index da4c7c7..15d67be 100644 --- a/code/app/home/view/videoNuNu/video/getVideoInfo.html +++ b/code/app/home/view/videoNuNu/video/getVideoInfo.html @@ -2,10 +2,12 @@ {block name="get-data"} -{if $Request.route.intVId} -{video:info v_id="$Request.route.intVId" v_key="arrVideo" /} +{if $Request.route.intVId && $Request.route.intVForgeId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" v_fid="$Request.route.intVForgeId" /} +{elseif $Request.route.intVId} + {video:info v_id="$Request.route.intVId" v_key="arrVideo" /} {else} -{video:info v_id="$DomainModel->info_id" n_key="arrVideo" n_forge_id="0" /} + {video:info v_id="$DomainModel->info_id" n_key="arrVideo" /} {/if} {site:grm page_code="h5_video_info" diff="$arrVideo.v_id" num="120" g_key="arrGrm" /} @@ -293,6 +295,24 @@
    + {if !empty($arrVideo.v_seo_words)} +
    +
    +
    +
    +

    推荐

    +
    +
    +
    + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
    +
    +
    + {/if} +
    diff --git a/code/app/home/view/videoNuNu/video/getVideoPlayUrl.html b/code/app/home/view/videoNuNu/video/getVideoPlayUrl.html index 6639f5d..497aed5 100644 --- a/code/app/home/view/videoNuNu/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoNuNu/video/getVideoPlayUrl.html @@ -234,6 +234,24 @@
    + + {if !empty($arrVideo.v_seo_words)} +
    +
    +
    +
    +

    推荐

    +
    +
    +
    + {volist name='$arrVideo.v_seo_words' key="index" id='SeoWords' } + {$SeoWords}   + {/volist} +
    +
    +
    + {/if}