fix video rank cateogry en

This commit is contained in:
Default
2025-05-05 16:35:02 +08:00
parent cac9177838
commit 2060703010
3 changed files with 12 additions and 1 deletions

View File

@@ -72,7 +72,9 @@ class VideoClicksModel extends MongoModel
'$inc' => ['vc_clicks' => 1], '$inc' => ['vc_clicks' => 1],
'$set' => [ '$set' => [
'v_category' => $Video->v_category, 'v_category' => $Video->v_category,
'v_parent_category' => $Video->v_parent_category 'v_parent_category' => $Video->v_parent_category,
'v_category_en' => $Video->v_category_en,
'v_parent_categoryen' => $Video->v_parent_category_en,
], ],
], ],
[ [

View File

@@ -71,5 +71,6 @@ class Scheduler
public function createCrawlWenXueGuanTask(array $arrData) public function createCrawlWenXueGuanTask(array $arrData)
{ {
$arrCcData = json_decode($arrData['cc_data'], true); $arrCcData = json_decode($arrData['cc_data'], true);
print_r($arrCcData);
} }
} }

View File

@@ -10,9 +10,17 @@ return [
'key' => ['v_category' => 1], 'key' => ['v_category' => 1],
'options' => ['unique' => false] 'options' => ['unique' => false]
], ],
[
'key' => ['v_category_en' => 1],
'options' => ['unique' => false]
],
[ [
'key' => ['v_parent_category' => 1], 'key' => ['v_parent_category' => 1],
'options' => ['unique' => false] 'options' => ['unique' => false]
], ],
[
'key' => ['v_parent_category_en' => 1],
'options' => ['unique' => false]
],
] ]
]; ];