小说详情重复率优化,伪造小说路由修复
This commit is contained in:
@@ -162,9 +162,14 @@ $arrRoutes = [
|
||||
// 伪小说详情相关路径
|
||||
'kan-novel' => [
|
||||
'/kan-xiaoshuo/:name-:intNovelId-:intForgeId',
|
||||
'/kan-book/:name-:intNovelId-:intForgeId',
|
||||
'/kan-novel/:name-:intNovelId-:intForgeId',
|
||||
'/show-novel/:name-:intNovelId-:intForgeId',
|
||||
'/seo-book/: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',
|
||||
'/good-book-:name-:intNovelId-:intForgeId',
|
||||
],
|
||||
|
||||
@@ -6,7 +6,13 @@ $Novel.n_id{extend name="baseH5" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
|
||||
{if empty($Request.route.intForgeId)}
|
||||
{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 name="title"}
|
||||
@@ -251,20 +257,24 @@ $Novel.n_id{extend name="baseH5" /}
|
||||
<span class="label">相关标签:</span>
|
||||
<span class="value">
|
||||
<span class="value-tag">
|
||||
{if empty($Request.route.intForgeId)}
|
||||
{volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"}
|
||||
{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>
|
||||
{/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>
|
||||
{/novel:list}
|
||||
{/if}
|
||||
{volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"}
|
||||
{if !empty($arrGrm[$key + 34])}
|
||||
{$arrGrm[$key+34]|raw}
|
||||
{/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>
|
||||
{/volist}
|
||||
|
||||
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
@@ -276,11 +286,19 @@ $Novel.n_id{extend name="baseH5" /}
|
||||
<div class="title-text">猜你喜欢</div>
|
||||
</div>
|
||||
<div class="novel-item item">
|
||||
{if empty($Request.route.intForgeId)}
|
||||
<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"}
|
||||
{include file="public/novel-list-flex" start="16"/}
|
||||
{/novel:list}
|
||||
</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>
|
||||
|
||||
@@ -1,27 +1,51 @@
|
||||
//data
|
||||
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',
|
||||
title: '参加综艺后,萌宝火了',
|
||||
link: 'https://zhaoshiping.com/vod/can-jia-zong-yi-hou-meng-bao-huo-le-73280',
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
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',
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
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',
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
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',
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoLaoNiu',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -304,7 +304,6 @@ resData = [
|
||||
</li>
|
||||
{/chapter:list}
|
||||
|
||||
|
||||
# 11、 获取小说章节详情数据
|
||||
# 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号):
|
||||
$n_id ; # 传入的小说ID
|
||||
|
||||
Reference in New Issue
Block a user