debug
This commit is contained in:
@@ -49,7 +49,6 @@ class NovelModel extends MongoModel
|
||||
'n_site_uuid' => 0,
|
||||
'n_source_id' => 0,
|
||||
'n_page_title' => 0,
|
||||
'og_description' => 0,
|
||||
'og_image' => 0,
|
||||
'og_novel_latest_chapter_url' => 0,
|
||||
'og_novel_read_url' => 0,
|
||||
@@ -72,7 +71,7 @@ class NovelModel extends MongoModel
|
||||
|
||||
try {
|
||||
$arrConditions = array_map(function ($strKeyword) {
|
||||
return ['og_title' => ['$regex' => trim($strKeyword), '$options' => 'i']];
|
||||
return ['og_novel_book_name' => ['$regex' => trim($strKeyword), '$options' => 'i']];
|
||||
}, $arrKeywords);
|
||||
|
||||
$UpdateResult = $this->getCol()->updateMany(
|
||||
|
||||
@@ -44,7 +44,6 @@ class NovelPage extends BasePage
|
||||
if ($arrExisting) {
|
||||
$arrNovelInfo = (array) $arrExisting;
|
||||
} else {
|
||||
$arrNovelInfo['og_title'] = $strName;
|
||||
$arrNovelInfo['og_novel_book_name'] = $strName;
|
||||
$arrNovelInfo['og_novel_pin_yin'] = zhToPinYin($strName);
|
||||
$arrNovelInfo['n_site_name'] = '恋上你中文';
|
||||
|
||||
Reference in New Issue
Block a user