debug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user