|
...
|
...
|
@@ -59,7 +59,7 @@ class RankData extends BaseCommands |
|
|
|
|
|
|
|
$this->save_rank($item['project_id'], $res, $indexed_pages_num);
|
|
|
|
}
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('1111111111', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
//有小语种的
|
|
|
|
$lang_list = $api->getLangList();
|
|
|
|
if(!empty($lang_list[$item['api_no']])){
|
|
...
|
...
|
@@ -70,7 +70,7 @@ class RankData extends BaseCommands |
|
|
|
$error++;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('2222', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$data = [];
|
|
|
|
//不同的小语种取出来
|
|
|
|
foreach ($res as $keyword => $v){
|
|
...
|
...
|
@@ -82,7 +82,7 @@ class RankData extends BaseCommands |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('333333', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return !$error;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|