小说详情重复率优化,伪造小说路由修复

This commit is contained in:
make
2025-07-20 23:33:49 +08:00
parent 53b2215b54
commit b3419254c1
4 changed files with 66 additions and 20 deletions

View File

@@ -162,9 +162,14 @@ $arrRoutes = [
// 伪小说详情相关路径 // 伪小说详情相关路径
'kan-novel' => [ 'kan-novel' => [
'/kan-xiaoshuo/:name-:intNovelId-:intForgeId', '/kan-xiaoshuo/:name-:intNovelId-:intForgeId',
'/kan-book/:name-:intNovelId-:intForgeId',
'/kan-novel/:name-:intNovelId-:intForgeId',
'/show-novel/:name-:intNovelId-:intForgeId', '/show-novel/:name-:intNovelId-:intForgeId',
'/seo-book/:name-:intNovelId-:intForgeId', '/seo-book/:name-:intNovelId-:intForgeId',
'/show-xiaoshuo-:name-:intNovelId-:intForgeId', '/show-xiaoshuo-:name-:intNovelId-:intForgeId',
'/kan-xiaoshuo-:name-:intNovelId-:intForgeId',
'/kan-novel-:name-:intNovelId-:intForgeId',
'/kan-book-:name-:intNovelId-:intForgeId',
'/see-novel-:name-:intNovelId-:intForgeId', '/see-novel-:name-:intNovelId-:intForgeId',
'/good-book-:name-:intNovelId-:intForgeId', '/good-book-:name-:intNovelId-:intForgeId',
], ],

View File

@@ -6,7 +6,13 @@ $Novel.n_id{extend name="baseH5" /}
{else} {else}
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /} {novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
{/if} {/if}
{if empty($Request.route.intForgeId)}
{site:grm page_code="novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} {site:grm page_code="novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
{else}
{site:grm page_code="novel_info" diff="$Request.route.intForgeId" num="120" g_key="arrGrm" /}
{/if}
{/block} {/block}
{block name="title"} {block name="title"}
@@ -251,20 +257,24 @@ $Novel.n_id{extend name="baseH5" /}
<span class="label">相关标签:</span> <span class="label">相关标签:</span>
<span class="value"> <span class="value">
<span class="value-tag"> <span class="value-tag">
{volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} {if empty($Request.route.intForgeId)}
{if !empty($arrGrm[$key + 24])} {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"}
{$arrGrm[$key+24]|raw} {if !empty($arrGrm[$key + 24])}
{$arrGrm[$key+24]|raw}
{/if}
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>&nbsp;&nbsp;
{/volist}
{else}
{novel:list count="10" n_category="$arrNovel.n_category_pinyin" sort_type="news" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="1000"}
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>&nbsp;&nbsp;
{/novel:list}
{/if} {/if}
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>&nbsp;&nbsp;
{/volist}
{volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"} {volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"}
{if !empty($arrGrm[$key + 34])} {if !empty($arrGrm[$key + 34])}
{$arrGrm[$key+34]|raw} {$arrGrm[$key+34]|raw}
{/if} {/if}
<a href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>&nbsp;&nbsp; <a href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>&nbsp;&nbsp;
{/volist} {/volist}
</span> </span>
</span> </span>
</div> </div>
@@ -276,11 +286,19 @@ $Novel.n_id{extend name="baseH5" /}
<div class="title-text">猜你喜欢</div> <div class="title-text">猜你喜欢</div>
</div> </div>
<div class="novel-item item"> <div class="novel-item item">
{if empty($Request.route.intForgeId)}
<div class="work-list"> <div class="work-list">
{novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" cache_life="3600"} {novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" cache_life="3600"}
{include file="public/novel-list-flex" start="16"/} {include file="public/novel-list-flex" start="16"/}
{/novel:list} {/novel:list}
</div> </div>
{else}
<div class="work-list">
{novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="3600"}
{include file="public/novel-list-flex" start="16"/}
{/novel:list}
</div>
{/if}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1,27 +1,51 @@
//data //data
const popupData = [ const popupData = [
// {
// image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp',
// title: '参加综艺后,萌宝火了',
// link: 'https://zhaoshiping.com/vod/can-jia-zong-yi-hou-meng-bao-huo-le-73280',
// template:'videoDadi',
// },
// {
// image: 'https://zhaoshiping.com/img/video/2024/11/22/04/wu-shen-zhu-zai.webp',
// title: '武神主宰',
// link: 'https://zhaoshiping.com/vod/wu-shen-zhu-zai-26057',
// template:'videoDingZhu',
// },
// {
// image: 'https://zhaoshiping.com/img/video/2024/04/22/11/shui-jiao-huang-hou.webp',
// title: '水饺皇后',
// link: 'https://zhaoshiping.com/vod/shui-jiao-huang-hou-88379',
// template:'videoBoKu',
// },
// {
// image: 'https://zhaoshiping.com/img/video/2023/12/19/23/cui-huo-nian-dai.webp',
// title: '淬火年代',
// link: 'hhttps://zhaoshiping.com/vod/cui-huo-nian-dai-107683',
// template:'videoLaoNiu',
// },
{ {
image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp', image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
title: '参加综艺后,萌宝火了', title: '&#51;&#68;&#32905;&#33970;&#22242;&#20043;&#26497;&#20048;&#23453;&#37492;',// 3d
link: 'https://zhaoshiping.com/vod/can-jia-zong-yi-hou-meng-bao-huo-le-73280', link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
template:'videoDadi', template:'videoDadi',
}, },
{ {
image: 'https://zhaoshiping.com/img/video/2024/11/22/04/wu-shen-zhu-zai.webp', image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
title: '武神主宰', title: '&#51;&#68;&#32905;&#33970;&#22242;&#20043;&#26497;&#20048;&#23453;&#37492;',// 3d
link: 'https://zhaoshiping.com/vod/wu-shen-zhu-zai-26057', link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
template:'videoDingZhu', template:'videoDingZhu',
}, },
{ {
image: 'https://zhaoshiping.com/img/video/2024/04/22/11/shui-jiao-huang-hou.webp', image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
title: '水饺皇后', title: '&#51;&#68;&#32905;&#33970;&#22242;&#20043;&#26497;&#20048;&#23453;&#37492;',// 3d
link: 'https://zhaoshiping.com/vod/shui-jiao-huang-hou-88379', link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
template:'videoBoKu', template:'videoBoKu',
}, },
{ {
image: 'https://zhaoshiping.com/img/video/2023/12/19/23/cui-huo-nian-dai.webp', image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
title: '淬火年代', title: '&#51;&#68;&#32905;&#33970;&#22242;&#20043;&#26497;&#20048;&#23453;&#37492;',// 3d
link: 'hhttps://zhaoshiping.com/vod/cui-huo-nian-dai-107683', link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
template:'videoLaoNiu', template:'videoLaoNiu',
}, },
{ {

View File

@@ -304,7 +304,6 @@ resData = [
</li> </li>
{/chapter:list} {/chapter:list}
# 11、 获取小说章节详情数据 # 11、 获取小说章节详情数据
# 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号) # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号)
$n_id ; # 传入的小说ID $n_id ; # 传入的小说ID