修改小说伪造小说详情页面 取消伪造列表随机
This commit is contained in:
@@ -199,22 +199,8 @@
|
||||
<div class="title">《{$arrNovel['n_name']}》第245章 全文完</div>
|
||||
<div class="first_txt">
|
||||
<p>{$arrNovel.strFocus}</p>
|
||||
{php}
|
||||
$arrRandomForgeNovels = [];
|
||||
if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) {
|
||||
$forgeNovels = $arrNovel['n_forge_novel'];
|
||||
$count = count($forgeNovels);
|
||||
if ($count > 0) {
|
||||
$randomKeys = array_rand($forgeNovels, min(10, $count));
|
||||
foreach ((array) $randomKeys as $key) {
|
||||
$arrRandomForgeNovels[] = $forgeNovels[$key];
|
||||
}
|
||||
}
|
||||
}
|
||||
{/php}
|
||||
|
||||
|
||||
{volist name='arrRandomForgeNovels' id='ForgeNovel' key="key"}
|
||||
|
||||
{volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"}
|
||||
{if !empty($arrGrm[$key])}
|
||||
{$arrGrm[$key]|raw}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user