This commit is contained in:
Default
2025-04-09 02:13:20 +08:00
parent 466abd8cd6
commit 064a5d4a92
13 changed files with 319 additions and 408 deletions

View File

@@ -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;

View File

@@ -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;