小说详情重复率优化,伪造小说路由修复
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">
|
||||
{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}
|
||||
<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}
|
||||
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
{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>
|
||||
|
||||
Reference in New Issue
Block a user