debug
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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'] = '恋上你中文';
|
||||||
|
|||||||
@@ -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]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user