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

@@ -45,7 +45,7 @@ class NovelManage extends Command
$ChapterCol = $Db->selectCollection('chapter');
$ChapterModel = new ChapterModel;
$ChapterModel = ChapterModel::getInstance();
$intBatchSize = 1000;
@@ -82,7 +82,7 @@ class NovelManage extends Command
$arrUpdateData['category_sex_zh'] = CategoryModel::checkSexZh($arrDoc['og_novel_category']);
}
$arrLasteChapter = $ChapterModel->getLatestChapter($arrDoc['n_id'], false);
$arrLasteChapter = $ChapterModel->getLatestChapterByNId($arrDoc['n_id'], false);
if (!empty($arrLasteChapter)) {
$arrUpdateData['n_have_chapter'] = 1;