修改小说伪造小说详情页面 取消伪造列表随机

This commit is contained in:
make
2025-07-31 02:02:32 +08:00
parent 95dd6cea8a
commit f115c7f480
17 changed files with 3003 additions and 240 deletions

View File

@@ -167,21 +167,8 @@
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
<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+20])}
{$arrGrm[$key+20]|raw}
{/if}