This commit is contained in:
Default
2025-04-09 17:41:59 +08:00
parent c5dedc8a78
commit 1a39dda023
3 changed files with 2 additions and 4 deletions

View File

@@ -49,7 +49,6 @@ class NovelModel extends MongoModel
'n_site_uuid' => 0, 'n_site_uuid' => 0,
'n_source_id' => 0, 'n_source_id' => 0,
'n_page_title' => 0, 'n_page_title' => 0,
'og_description' => 0,
'og_image' => 0, 'og_image' => 0,
'og_novel_latest_chapter_url' => 0, 'og_novel_latest_chapter_url' => 0,
'og_novel_read_url' => 0, 'og_novel_read_url' => 0,
@@ -72,7 +71,7 @@ class NovelModel extends MongoModel
try { try {
$arrConditions = array_map(function ($strKeyword) { $arrConditions = array_map(function ($strKeyword) {
return ['og_title' => ['$regex' => trim($strKeyword), '$options' => 'i']]; return ['og_novel_book_name' => ['$regex' => trim($strKeyword), '$options' => 'i']];
}, $arrKeywords); }, $arrKeywords);
$UpdateResult = $this->getCol()->updateMany( $UpdateResult = $this->getCol()->updateMany(

View File

@@ -44,7 +44,6 @@ class NovelPage extends BasePage
if ($arrExisting) { if ($arrExisting) {
$arrNovelInfo = (array) $arrExisting; $arrNovelInfo = (array) $arrExisting;
} else { } else {
$arrNovelInfo['og_title'] = $strName;
$arrNovelInfo['og_novel_book_name'] = $strName; $arrNovelInfo['og_novel_book_name'] = $strName;
$arrNovelInfo['og_novel_pin_yin'] = zhToPinYin($strName); $arrNovelInfo['og_novel_pin_yin'] = zhToPinYin($strName);
$arrNovelInfo['n_site_name'] = '恋上你中文'; $arrNovelInfo['n_site_name'] = '恋上你中文';

View File

@@ -7,7 +7,7 @@ return [
'options' => ['unique' => false] 'options' => ['unique' => false]
], ],
[ [
'key' => ['og_title' => 1], 'key' => ['og_novel_book_name' => 1],
'options' => ['unique' => false] 'options' => ['unique' => false]
], ],
[ [