debug
This commit is contained in:
@@ -214,22 +214,28 @@ class ChapterService
|
||||
|
||||
|
||||
/**
|
||||
* 根据NId获取小说详情
|
||||
* 根据Id获取小说章节详情
|
||||
*
|
||||
* @param integer $intNId
|
||||
* @param integer $intCSortNum
|
||||
* @param integer $intCPage
|
||||
* @return void
|
||||
*/
|
||||
public function getChapterInfo(int $intNId, int $intCSortNum, int $intCPage)
|
||||
public function getChapterInfo(int $intNId, int $intCSortNum = 0, int $intCPage = 0)
|
||||
{
|
||||
// 小说详情
|
||||
$arrNovel = $this->NovelModel->getNovelByNId($intNId);
|
||||
|
||||
// 章节
|
||||
|
||||
$ChapterModel = ChapterModel::getInstance();
|
||||
$arrFilter = ['n_id' => $intNId, 'c_sort_num' => $intCSortNum, 'c_page' => $intCPage];
|
||||
if($intCSortNum == 0 && $intCPage == 0){
|
||||
// 最新章节
|
||||
$arrChapter = $ChapterModel->getLatestChapterByNId($intNId);
|
||||
}else{
|
||||
// 章节
|
||||
$arrFilter = ['n_id' => $intNId, 'c_sort_num' => $intCSortNum, 'c_page' => $intCPage];
|
||||
$arrChapter = $ChapterModel->findOne($arrFilter);
|
||||
}
|
||||
|
||||
|
||||
$arrChapter = $ChapterModel->findOne($arrFilter);
|
||||
$strChapterDescription = '';
|
||||
|
||||
// 上一章节和下一章节
|
||||
|
||||
@@ -574,10 +574,17 @@ class NovelService
|
||||
$intLifeTime = $intLifeTime;
|
||||
}
|
||||
|
||||
// 更新值
|
||||
// 更新值
|
||||
$strGender = $this->SiteContext->Request->param('strGender');
|
||||
$strNanUrlTemp = $this->SiteContext->DomainModel->getFomartSubject('NAN_SHENG_URL', '', false);
|
||||
$strNanUrl = str_replace("/", "", $strNanUrlTemp);
|
||||
$strCNSex = '全部';
|
||||
if($strGender){
|
||||
$strCNSex = $strGender == $strNanUrl ? '男生' : '女生';
|
||||
}
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => $intPage,
|
||||
// 'strNovelSex' => empty($strNSex) ? '' : $this->arrSex[$strNSex],
|
||||
'strNovelSex' => $strCNSex,
|
||||
'strNovelCategoryName' => empty($strNCategory) ? '' : str_replace("小说", "", $strNCategory),
|
||||
'strNovelStatus' => empty($strNStatus) ? '' : $this->arrStatus[$strNStatus],
|
||||
'strNovelOrder' => empty($strSortType) ? '' :$this->arrSortType[$strSortType],
|
||||
@@ -661,7 +668,7 @@ class NovelService
|
||||
* @param integer $intNId
|
||||
* @return void
|
||||
*/
|
||||
public function getNovelByNId(int $intNId, int $intNForgeId = 0)
|
||||
public function getNovelByNId(int $intNId, int|null $intNForgeId = 0)
|
||||
{
|
||||
|
||||
// 小说详情
|
||||
|
||||
Reference in New Issue
Block a user