|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Console\Commands\RankData; |
|
|
|
use App\Helper\QuanqiusouApi;
|
|
|
|
use App\Models\Project\DeployOptimize;
|
|
|
|
use App\Models\RankData\IndexedPages as IndexedPagesModel;
|
|
|
|
use App\Utils\LogUtils;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class IndexedPages
|
|
...
|
...
|
@@ -38,7 +39,7 @@ class IndexedPages extends BaseCommands |
|
|
|
$api = new QuanqiusouApi();
|
|
|
|
//有排名api编号的项目
|
|
|
|
$list = DeployOptimize::where('api_no', '>', 0)->pluck('api_no', 'project_id')->toArray();
|
|
|
|
|
|
|
|
LogUtils::info('start rank_data_indexed_pages:' . count($list));
|
|
|
|
foreach ($list as $project_id => $api_no) {
|
|
|
|
$model = IndexedPagesModel::where('project_id', $project_id)->first();
|
|
|
|
if($model && $model->updated_date == getThisWeekStarDate()){
|
...
|
...
|
|