123
This commit is contained in:
@@ -88,7 +88,7 @@ class Novel extends BaseController
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 性别
|
||||
|
||||
|
||||
$arrSex = [
|
||||
'all' => 0,
|
||||
'nansheng-xiaoshuo' => 1,
|
||||
@@ -110,7 +110,7 @@ class Novel extends BaseController
|
||||
$strCategoryKey = array_search($strCategory, CategoryModel::$arrCategoryPinYin);
|
||||
$strSearchCategory = CategoryModel::$arrCategory[$strCategoryKey];
|
||||
}
|
||||
|
||||
|
||||
// 小说状态
|
||||
$arrStatus = [
|
||||
'all' => NULL,
|
||||
@@ -324,22 +324,33 @@ class Novel extends BaseController
|
||||
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
|
||||
$NovelModel = new NovelModel;
|
||||
|
||||
// 小说详情
|
||||
$arrNovel = $NovelModel->getNovelInfo($intNId);
|
||||
|
||||
// 最后章节
|
||||
$ChapterModel = new ChapterModel;
|
||||
|
||||
$arrLatestChapter = $ChapterModel->getLatestChapter($intNId);
|
||||
|
||||
// 最近五个章节
|
||||
$arrChapter = $ChapterModel->getChapterAll([
|
||||
'n_id' => $intNId,
|
||||
'c_page' => 0,
|
||||
], 5, ['c_sort_num' => -1]);
|
||||
|
||||
// 点击数
|
||||
$NovelClicksModel = new NovelClicksModel;
|
||||
$arrNovelClicks = $NovelClicksModel->getStats($intNId);
|
||||
|
||||
// 推荐小说
|
||||
$arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id');
|
||||
|
||||
$arrRelateveNovel = $NovelModel->getNovelAll([
|
||||
'$in' => $arrRelateveNId,
|
||||
], 100);
|
||||
|
||||
// echo '<pre>';
|
||||
// print_r($arrNovel);
|
||||
// exit;
|
||||
|
||||
$strNovel = '斗罗大陆';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user