debug
This commit is contained in:
@@ -122,8 +122,8 @@ class ChapterPage extends BasePage
|
||||
'n_id' => $intNId,
|
||||
];
|
||||
|
||||
$ChapterModel = new ChapterModel;
|
||||
$arrLasteChapter = $ChapterModel->getLatestChapter($intNId, false);
|
||||
$ChapterModel = ChapterModel::getInstance();
|
||||
$arrLasteChapter = $ChapterModel->getLatestChapterByNId($intNId, false);
|
||||
|
||||
if (!empty($arrLasteChapter)) {
|
||||
$arrUpdate['$set']['n_have_chapter'] = 1;
|
||||
|
||||
@@ -226,7 +226,7 @@ class NovelPage extends BasePage
|
||||
*/
|
||||
protected $arrChapters = NULL;
|
||||
|
||||
public function getLatestChaptersList(): array
|
||||
public function getLatestChapterByNIdsList(): array
|
||||
{
|
||||
if ($this->arrLatestChapters === NULL) {
|
||||
$this->arrLatestChapters = [];
|
||||
@@ -286,7 +286,7 @@ class NovelPage extends BasePage
|
||||
{
|
||||
$this->arrNextPageArgs = [];
|
||||
if ($this->arrData['page'] == 0) {
|
||||
$this->getLatestChaptersList();
|
||||
$this->getLatestChapterByNIdsList();
|
||||
$this->getChapters();
|
||||
|
||||
$arrLatestChapterFirstBlock = count($this->arrLatestChapters) > 0 ? $this->arrLatestChapters[0] : null;
|
||||
|
||||
Reference in New Issue
Block a user