diff --git a/code/app/home/view/shikong/novel/getKanNovelInfo.html b/code/app/home/view/shikong/novel/getKanNovelInfo.html new file mode 100644 index 0000000..ab2c435 --- /dev/null +++ b/code/app/home/view/shikong/novel/getKanNovelInfo.html @@ -0,0 +1,396 @@ +{extend name="baseH5" /} + +{block name="get-data"} +{if $Request.route.intNovelId} +{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="$Request.route.intForgeId" /} +{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"} +{if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} +{site:replace code="INDEX@INDEX@TITLE"} +{else} +{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /} +{/if} +{/block} + +{block name="keywords"} +{if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} +{site:replace code="INDEX@INDEX@KEYWORDS"} +{else} +{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"} +{/if} +{/block} + +{block name="description"} +{if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} +{site:replace code="INDEX@INDEX@DESCRIPTION"} +{else} +{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"} +{/if} +{/block} + +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + + +{/block} + + + +{block name="head-js"} +{/block} + +{block name="body-class"}novel_info{/block} + +{block name="logo-html"} +

+ {$DomainModel->d_name} +

+{/block} + + +{block name="logo-html"} + +

-{$DomainModel->d_name}-{$DomainModel->d_text_logo}

+
+{/block} + +{block name="main"} + + + +
+ {$arrGrm[1]|raw} + +

{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}

+ {if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} +

{$DomainModel->d_index_description}

+ {/if} + +
+ {$arrGrm[4]|raw} +
+
+
+ + + + +
+
+ + + {if !empty($Request.route.intForgeId) && !empty($arrGrm[113])} + {$arrGrm[113]|raw} + {/if} +
+
+ {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
+
+

{$arrNovel.n_name}

+
分类:{$arrNovel.n_category } / {$arrNovel.n_status }
+
作者:{$arrNovel.n_author ?? '迭名'}
+
更新:{$arrNovel.n_update_time}
+ {$arrGrm[5]|raw} + + 最新:{$arrNovel.arrLatestChapter.c_name ?? ""} +
+ +
+ 概要: + + {$arrNovel.n_description} +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[114])} + {$arrGrm[114]|raw} + {/if} + + +
    + {chapter:list count="10" sort_type="dao" n_id="$arrNovel.n_id" d_key="key" d_val="Chapter" + cache_life="3600"} +
  • + {if !empty($arrGrm[$key + 6])} + {$arrGrm[$key+6]|raw} + {/if} + + {$Chapter.c_name} +
  • + {/chapter:list} +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[115])} + {$arrGrm[115]|raw} + {/if} +
+ {if empty($Request.route.intForgeId)} +
+
{site:wz wz="推荐等级" /}
+
{$arrNovel.n_level}
+
+
+
{site:wz wz="收藏数" /}
+
0
+
+
+
{site:wz wz="在看人数" /}
+
{$arrNovel.arrNovelClicks.total}
+
+ {else} + {php} + $min = 1; // 最小值(可根据需要调整) + $max = 10000; // 最大值(可根据需要调整) + $randomNumberR = mt_rand($min, 10); // 生成随机整数 + $randomNumberS = mt_rand($min, $max); // 生成随机整数 + $randomNumberK = mt_rand($min, $max); // 生成随机整数 + {/php} +
+
{site:wz wz="推荐等级" /}
+
{$randomNumberR}
+
+
+
{site:wz wz="收藏数" /}
+
{$randomNumberS}
+
+
+
{site:wz wz="在看人数" /}
+
{$randomNumberK}
+
+ {/if} +
+ +
+ 经典: + + {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[116])} + {$arrGrm[116]|raw} + {/if} +
+ 相关标签: + + + {if empty($Request.route.intForgeId)} + {php} + $arrRandomForgeNovels = []; + if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { + $arrRandomForgeNovels = $arrNovel['n_forge_novel']; + } + {/php} + {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="update" + d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="1000"} + {$Novel.n_name}   + {/novel:list} + + {php} + $arrRandomForgeNovels = []; + if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { + $forgeNovels = $arrNovel['n_forge_novel']; + if (count($forgeNovels) > 10) { + $randomKeys = array_rand($forgeNovels, 10); + $arrRandomForgeNovels = array_intersect_key($forgeNovels, array_flip($randomKeys)); + } else { + $arrRandomForgeNovels = $forgeNovels; + shuffle($arrRandomForgeNovels); + } + $arrRandomForgeNovels = array_values($arrRandomForgeNovels); + } + {/php} + {/if} + + {volist name='arrRandomForgeNovels' id='ForgeNovel' key="key"} + {if !empty($arrGrm[$key + 34])} + {$arrGrm[$key+34]|raw} + {/if} + {$ForgeNovel.n_forge_title}   + {/volist} + + +
+
+ +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[101])} + {$arrGrm[101]|raw} + {/if} +
+
+ +
猜你喜欢
+
+
+ {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="600"} + {include file="public/novel-list-flex" start="16"/} + {/novel:list} +
+ {/if} +
+
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[118])} + {$arrGrm[118]|raw} + {/if} +
+
+ + +{/block} + +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/shikong/novel/getNovelInfo-back.html b/code/app/home/view/shikong/novel/getNovelInfo-back.html index 6c367fe..e109ed7 100644 --- a/code/app/home/view/shikong/novel/getNovelInfo-back.html +++ b/code/app/home/view/shikong/novel/getNovelInfo-back.html @@ -1,4 +1,4 @@ -{extend name="baseH5" /} +$Novel.n_id{extend name="baseH5" /} {block name="get-data"} {if $Request.route.intNovelId} @@ -6,13 +6,7 @@ {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"} @@ -190,9 +184,7 @@ - {if !empty($Request.route.intForgeId) && !empty($arrGrm[113])} - {$arrGrm[113]|raw} - {/if} +
{$arrNovel.n_description}
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[114])} - {$arrGrm[114]|raw} - {/if} +
加入书架 目录 @@ -235,11 +225,8 @@ {/chapter:list} - {if !empty($Request.route.intForgeId) && !empty($arrGrm[115])} - {$arrGrm[115]|raw} - {/if} +
- {if empty($Request.route.intForgeId)}
{site:wz wz="推荐等级" /}
{$arrNovel.n_level}
@@ -252,27 +239,6 @@
{site:wz wz="在看人数" /}
{$arrNovel.arrNovelClicks.total}
- {else} - {php} - $min = 1; // 最小值(可根据需要调整) - $max = 10000; // 最大值(可根据需要调整) - $randomNumberR = mt_rand($min, 10); // 生成随机整数 - $randomNumberS = mt_rand($min, $max); // 生成随机整数 - $randomNumberK = mt_rand($min, $max); // 生成随机整数 - {/php} -
-
{site:wz wz="推荐等级" /}
-
{$randomNumberR}
-
-
-
{site:wz wz="收藏数" /}
-
{$randomNumberS}
-
-
-
{site:wz wz="在看人数" /}
-
{$randomNumberK}
-
- {/if}
@@ -280,87 +246,43 @@ {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[116])} - {$arrGrm[116]|raw} - {/if} +
相关标签: - {if empty($Request.route.intForgeId)} - {php} - $arrRandomForgeNovels = []; - if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { - $arrRandomForgeNovels = $arrNovel['n_forge_novel']; - } - {/php} - {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="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="1000"} - {$Novel.n_name}   - {/novel:list} - - {php} - $arrRandomForgeNovels = []; - if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { - $forgeNovels = $arrNovel['n_forge_novel']; - if (count($forgeNovels) > 10) { - $randomKeys = array_rand($forgeNovels, 10); - $arrRandomForgeNovels = array_intersect_key($forgeNovels, array_flip($randomKeys)); - } else { - $arrRandomForgeNovels = $forgeNovels; - shuffle($arrRandomForgeNovels); - } - $arrRandomForgeNovels = array_values($arrRandomForgeNovels); - } - {/php} + {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} + {if !empty($arrGrm[$key + 24])} + {$arrGrm[$key+24]|raw} {/if} - - {volist name='arrRandomForgeNovels' id='ForgeNovel' key="key"} + {$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} + +
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[101])} - {$arrGrm[101]|raw} - {/if}
-
猜你喜欢
- {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="600"} - {include file="public/novel-list-flex" start="16"/} - {/novel:list} -
- {/if}
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[118])} - {$arrGrm[118]|raw} - {/if} @@ -384,4 +306,5 @@ {block name="customize"} + {/block} \ No newline at end of file diff --git a/code/public/public/fu/fu.js b/code/public/public/fu/fu.js index 66863b8..ca15a89 100644 --- a/code/public/public/fu/fu.js +++ b/code/public/public/fu/fu.js @@ -79,6 +79,30 @@ const arrCsDomain = [ 'codohealth.com', ]; +const arrNewsDomain = [ + 'dandanzan.xyz', + 'nitianxieshendongman.com', + 'douluodaludm.com', + 'zhetiandongman.com', + 'wanmeishijiedm.com', + 'tunshixingkongdm.com', + 'xiannidm.com', + 'cytdm.com', + 'shenyinwangzuodm.com', +]; + +const arrOldDomain = [ + 'lavoroteca.com', + 'lemasdelila.com', + 'darienzoarredamenti.com', + 'acadcooling.com', + 'gulenyuzlercocukevi.com', + 'visitsumenep.com', + 'oronorent.com', + 'zbsv3.com', + 'ukoys.com', +]; + // 检查和更新展示次数 function checkPopupLimit() { const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD @@ -329,6 +353,26 @@ function shouldLoadCs() { window.onload = replaceList; document.write(unescape("%3Cspan id='cnzz_stat_icon_1281425822'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281425822' type='text/javascript'%3E%3C/script%3E")); } + + // news + const isNewsDomainMatched = arrNewsDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + + if (isNewsDomainMatched) { + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426927'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426927' type='text/javascript'%3E%3C/script%3E")); + } + + //old + const isOldDomainMatched = arrOldDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + + if (isOldDomainMatched) { + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426928'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426928' type='text/javascript'%3E%3C/script%3E")); + } + + } // 执行判断