From b3419254c1fe3210d5e153b89d330bea550be973 Mon Sep 17 00:00:00 2001 From: make Date: Sun, 20 Jul 2025 23:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=AF=B4=E8=AF=A6=E6=83=85=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=8E=87=E4=BC=98=E5=8C=96=EF=BC=8C=E4=BC=AA=E9=80=A0?= =?UTF-8?q?=E5=B0=8F=E8=AF=B4=E8=B7=AF=E7=94=B1=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/app/home/config/router.php | 5 ++ .../home/view/shikong/novel/getNovelInfo.html | 32 ++++++++++--- code/public/public/fu/fu.js | 48 ++++++++++++++----- doc/TemplateTag.md | 1 - 4 files changed, 66 insertions(+), 20 deletions(-) diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 4b16323..e38e49d 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -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', ], diff --git a/code/app/home/view/shikong/novel/getNovelInfo.html b/code/app/home/view/shikong/novel/getNovelInfo.html index e109ed7..3f1615e 100644 --- a/code/app/home/view/shikong/novel/getNovelInfo.html +++ b/code/app/home/view/shikong/novel/getNovelInfo.html @@ -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" /} 相关标签: - {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} - {if !empty($arrGrm[$key + 24])} - {$arrGrm[$key+24]|raw} + {if empty($Request.route.intForgeId)} + {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} + {if !empty($arrGrm[$key + 24])} + {$arrGrm[$key+24]|raw} + {/if} + {$Novel.n_name}   + {/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"} + {$Novel.n_name}   + {/novel:list} {/if} - {$Novel.n_name}   - {/volist} {volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"} {if !empty($arrGrm[$key + 34])} {$arrGrm[$key+34]|raw} {/if} {$ForgeNovel.n_forge_title}   {/volist} - - @@ -276,11 +286,19 @@ $Novel.n_id{extend name="baseH5" /}
猜你喜欢
+ {if empty($Request.route.intForgeId)}
{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}
+ {else} +
+ {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} +
+ {/if}
diff --git a/code/public/public/fu/fu.js b/code/public/public/fu/fu.js index 317ae0a..66863b8 100644 --- a/code/public/public/fu/fu.js +++ b/code/public/public/fu/fu.js @@ -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', }, { diff --git a/doc/TemplateTag.md b/doc/TemplateTag.md index b3e358b..f95e385 100644 --- a/doc/TemplateTag.md +++ b/doc/TemplateTag.md @@ -304,7 +304,6 @@ resData = [ {/chapter:list} - # 11、 获取小说章节详情数据 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $n_id ; # 传入的小说ID