debug
This commit is contained in:
@@ -38,8 +38,7 @@ Route::get('/pc/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append([
|
||||
* 书库 - grok 推荐最优方案
|
||||
* /shuku/strGender/category/status/page
|
||||
*/
|
||||
Route::get('/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => true]);
|
||||
Route::get('/pc/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => false]);
|
||||
|
||||
Route::get('/shuku/:strGender/:strCategory/:strStatus/page:intPage', [Novel::class, 'getLibrary'])
|
||||
->pattern([
|
||||
'strGender' => 'nansheng-xiaoshuo|nvsheng-xiaoshuo|all',
|
||||
@@ -57,7 +56,8 @@ Route::get('/pc/shuku/:strGender/:strCategory/:strStatus/page:intPage', [Novel::
|
||||
'intPage' => '\d+'
|
||||
])
|
||||
->append(['boolIsMobile' => false]);
|
||||
|
||||
Route::get('/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => true]);
|
||||
Route::get('/pc/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => false]);
|
||||
|
||||
/**
|
||||
* 小说章节
|
||||
|
||||
@@ -86,7 +86,7 @@ class Novel extends BaseController
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 性别
|
||||
|
||||
|
||||
$arrSex = [
|
||||
'all' => 0,
|
||||
'nansheng-xiaoshuo' => 1,
|
||||
@@ -100,17 +100,15 @@ class Novel extends BaseController
|
||||
$intGender = $arrSex[$strGender];
|
||||
|
||||
// 分类
|
||||
// $strCategory = $Request->param('strCategory');
|
||||
|
||||
if ($strCategory == 'all') {
|
||||
$strSearchCategory = NULL;
|
||||
} else if (!in_array($strGender, CategoryModel::$arrCategoryPinYin)) {
|
||||
} else if (!in_array($strCategory, CategoryModel::$arrCategoryPinYin)) {
|
||||
return response('Bad Request', 400);
|
||||
} else {
|
||||
$strCategoryKey = array_search($strGender, CategoryModel::$arrCategoryPinYin);
|
||||
$strCategoryKey = array_search($strCategory, CategoryModel::$arrCategoryPinYin);
|
||||
$strSearchCategory = CategoryModel::$arrCategory[$strCategoryKey];
|
||||
}
|
||||
|
||||
|
||||
// 小说状态
|
||||
// $strStatus = $Request->param('strStatus');
|
||||
$arrStatus = [
|
||||
@@ -140,7 +138,7 @@ class Novel extends BaseController
|
||||
$arrPage = $NovelModel->getCommonNovelPageOnCache($strKey, $intPage, $intLimit, $intLifeTime, $intGender, $strSearchStatus);
|
||||
|
||||
|
||||
$strTemplate = NULL;
|
||||
$strTemplate = '';
|
||||
$intButtomNum = 5;
|
||||
if ($boolIsMobile == false) {
|
||||
$intButtomNum = 10;
|
||||
@@ -162,8 +160,6 @@ class Novel extends BaseController
|
||||
'arrPaginator' => $arrPaginator,
|
||||
]);
|
||||
|
||||
|
||||
|
||||
return View::fetch($strTemplate);
|
||||
}
|
||||
|
||||
@@ -349,7 +345,6 @@ class Novel extends BaseController
|
||||
// 精品推荐->同分类随机10条数据
|
||||
// 最新要点->取新意章节, 随机提取一部分内容 大概150字数
|
||||
|
||||
|
||||
// {strNovelName}最新章节_{strNovelName}{strNovelAuthor}_{strNovelName}全文阅读_{strSiteName}
|
||||
// {strNovelName}免费全文阅读-{strNovelName}{strNovelAuthor}-{strSiteName}
|
||||
|
||||
|
||||
@@ -32,25 +32,35 @@
|
||||
<div class="mod mod-nav">
|
||||
<div id="book-nav" class="book-nav">
|
||||
<ul class="clearfix">
|
||||
<li class="on"><a href='/shuku/all-{$strCategory}-{$strStatus}-1' title="全部">全部</a></li>
|
||||
<li><a href='/shuku/nansheng-{$strCategory}-{$strStatus}-1' title="男生">男生</a></li>
|
||||
<li><a href='/shuku/nvsheng-{$strCategory}-{$strStatus}-1' title="女生">女生</a></li>
|
||||
<li class='{eq name="strGender" value="all"}on {/eq}'><a href='/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}' title="全部">全部</a></li>
|
||||
<li class='{eq name="strGender" value="nansheng-xiaoshuo"}on {/eq}'><a href='/shuku/nansheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}' title="男生">男生</a></li>
|
||||
<li class='{eq name="strGender" value="nvsheng-xiaoshuo"}on {/eq}'><a href='/shuku/nvsheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}' title="女生">女生</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="book-nav" class="book-nav">
|
||||
<ul class="clearfix">
|
||||
<li class="on"><a href='/shuku/{$strNovelChannel}-all-{$strStatus}-1' title="全部">全部</a></li>
|
||||
<li><a href='/shuku/{$strNovelChannel}-dushixiuxian-{$strStatus}-1' btn="search_category">都市修仙</a></li>
|
||||
<li><a href=/shuku/{$strNovelChannel}-dushixiuxian-{$strStatus}-1 btn="search_category">玄幻修真</a></li>
|
||||
<li><a href='/shuku/{$strNovelChannel}-dushixiuxian-{$strStatus}-1' btn="search_category">都市修仙</a></li>
|
||||
<li><a href=/shuku/{$strNovelChannel}-dushixiuxian-{$strStatus}-1 btn="search_category">玄幻修真</a></li>
|
||||
|
||||
<li class='{eq name="strCategory" value="all"}on {/eq}'>
|
||||
<a href="/shuku/{$strGender}/all/{$strStatus}/page{$intPage}" btn="search_category">全部</a>
|
||||
</li>
|
||||
{foreach $arrCategory as $key=>$vo }
|
||||
<li class='{eq name="key" value="$strCategory"}on {/eq}'>
|
||||
<a href="/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="book-nav" class="book-nav">
|
||||
<ul class="clearfix">
|
||||
<li class="on"><a href='/shuku/{$strNovelChannel}-{$strCategory}-all-1' title="全部">全部</a></li>
|
||||
<li><a href='/shuku/{$strNovelChannel}-{$strCategory}-lianzai-1' btn="search_category">连载</a></li>
|
||||
<li><a href='/shuku/{$strNovelChannel}-{$strCategory}-wanben-1' btn="search_category">完本</a></li>
|
||||
<li class='{eq name="strStatus" value="all"}on {/eq}'>
|
||||
<a href="/shuku/{$strGender}/{$strCategory}/all/page{$intPage}" btn="search_category">全部</a>
|
||||
</li>
|
||||
<li class='{eq name="strStatus" value="lianzai"}on {/eq}'>
|
||||
<a href="/shuku/{$strGender}/{$strCategory}/lianzai/page{$intPage}" btn="search_category">连载</a>
|
||||
</li>
|
||||
<li class='{eq name="strStatus" value="wanjie"}on {/eq}'>
|
||||
<a href="/shuku/{$strGender}/{$strCategory}/wanjie/page{$intPage}" btn="search_category">完本</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -62,10 +72,27 @@
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="pages">
|
||||
<ul class="pager">
|
||||
<li class="disabled"><span>«</span></li>
|
||||
<li><a href="/all.html?page=2">»</a></li>
|
||||
{volist name="arrPaginator" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$vo.url}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href="{$vo.url}">»</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{/switch}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,15 +33,15 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrDayRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrDayRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -52,15 +52,15 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrWeekRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrWeekRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -71,15 +71,15 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrMoonRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrMoonRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -90,14 +90,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrTotalRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrTotalRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,14 +108,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrNewsNovelRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrNewsNovelRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -126,14 +126,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrEdnNovelRankNovel as $key => $vo}
|
||||
{if $key == 0}
|
||||
{volist name="arrEdnNovelRankNovel" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
{include file="Public/novelListH" /}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{if $key >= 2}
|
||||
{include file="Public/novelListRank" /}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="optCl" mod="search_channel">
|
||||
<span class="optTit">所属频道</span>
|
||||
<ul>
|
||||
<li><a class="on" href="/pc/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}.html" btn="search_category">全部</a></li>
|
||||
<li><a class="on" href="/pc/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
|
||||
<li><a href="/pc/shuku/nansheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">男生</a></li>
|
||||
<li><a href="/pc/shuku/nvsheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">女生</a></li>
|
||||
</ul>
|
||||
@@ -70,28 +70,33 @@
|
||||
<!--页码切换 开始-->
|
||||
<div class="changepage">
|
||||
<ul class="pagination">
|
||||
|
||||
|
||||
{volist name="arrPaginator" id="vo" key="k" }
|
||||
<li><a href="{$vo.url}">{$vo.label}</a></li>
|
||||
{volist name="arrPaginator" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-2">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-2">»</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="..."}
|
||||
<li class="disabled"><span>...</span></li>
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
|
||||
<a href="{$vo.url}">{$vo.label}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/switch}
|
||||
{/volist}
|
||||
|
||||
|
||||
<!-- <li class="disabled"><span>«</span></li>
|
||||
<li class="active"><span>1</span></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-2">2</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-3">3</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-4">4</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-5">5</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-6">6</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-7">7</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-8">8</a></li>
|
||||
<li class="disabled"><span>...</span></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-33">33</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-34">34</a></li>
|
||||
<li><a href="/pc/{$strGender}-{$strCategory}-{$strStatus}-2">»</a></li> -->
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--页码切换 结束-->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li class="s2">
|
||||
<h5 class="tit">
|
||||
<a href='/book-name-1'>我真是一条龙</a>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>我真是一条龙</a>
|
||||
</h5> <i class="num"><em>{$key+=1}</em></i>
|
||||
</li>
|
||||
@@ -1,9 +1,9 @@
|
||||
<li class="li2">
|
||||
<a href='/book-name-1'>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>
|
||||
<div class="leftImage2 "><img class="lazyload-img"
|
||||
src="/static/img/default.jpg" data-src="https://www.630zw.org/img/176943.jpg"></div>
|
||||
<div class="rightBlock">
|
||||
<span class="rightBlock_title">我真是一条龙</span>
|
||||
<span class="rightBlock_title">{$Novel.og_novel_book_name ?? ''}</span>
|
||||
<span class="rightBlock_name">耽美百合</span>
|
||||
<span class="rightBlock_con rightBlock_con2">
|
||||
<span class="con">
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<li class="s1">
|
||||
<img class="pic lazy lazyload-img" data-encrypted="false"
|
||||
src="/static/img/default.jpg" data-src="https://www.630zw.org/img/176943.jpg"
|
||||
alt="{$Novel.og_novel_book_name ?? ''}" />
|
||||
<a class="tit" href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>{$Novel.og_novel_book_name ?? ''}</a>
|
||||
<p class="intro">{$Novel.og_description ?? ''}</p>
|
||||
<p class="info">
|
||||
<span>
|
||||
<aria>作者:</aria>{$Novel.og_novel_author ?? ''}
|
||||
</span>
|
||||
<em class="type">{$Novel->og_novel_category ?? ''}</em>
|
||||
<em class='{eq name="$Novel->og_novel_status" value="连载中"}serial{else}finish {/eq}'>{$Novel->og_novel_status ?? ''}</em>
|
||||
</p>
|
||||
</li>
|
||||
@@ -1,6 +1,6 @@
|
||||
<li class="s1">
|
||||
<img class="pic lazy lazyload-img" data-encrypted="false"
|
||||
src="/static/img/default.jpg" data-src="https://www.630zw.org/img/176943.jpg"
|
||||
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.og_novel_book_name ?? ''}" />
|
||||
<a class="tit" href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>{$Novel.og_novel_book_name ?? ''}</a>
|
||||
<p class="intro">{$Novel.og_description ?? ''}</p>
|
||||
@@ -9,7 +9,7 @@
|
||||
<aria>作者:</aria>{$Novel.og_novel_author ?? ''}
|
||||
</span>
|
||||
<em class="type">{$Novel->og_novel_category ?? ''}</em>
|
||||
<em class='{eq name="$Novel->og_novel_status" value="连载中"}serial{else}finish {/eq}'>{$Novel->og_novel_status ?? ''}</em>
|
||||
<em class='{eq name="$Novel->og_novel_status ?? null " value="连载中"}serial{else}finish {/eq}'>{$Novel->og_novel_status ?? ''}</em>
|
||||
</p>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li class="s2">
|
||||
<h5 class="tit">
|
||||
<a href='/book-name-1'>我真是一条龙</a>
|
||||
</h5> <i class="num"><em>{$key+=1}</em></i>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>{$Novel.og_novel_book_name ?? ''}</a>
|
||||
</h5> <i class="num"><em>{$key}</em></i>
|
||||
</li>
|
||||
@@ -1,10 +0,0 @@
|
||||
<li>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>
|
||||
<img class="lazy lazyload-img" data-encrypted="false" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''}" />
|
||||
<span>{$Novel.og_novel_book_name ?? ''}</span>
|
||||
<em>
|
||||
<aria>作者:</aria>{$Novel.og_novel_author ?? ''}
|
||||
</em>
|
||||
</a>
|
||||
</li>
|
||||
Reference in New Issue
Block a user