|
...
|
...
|
@@ -51,6 +51,7 @@ class RankData extends BaseCommands |
|
|
|
if (!$model || $model->updated_date != date('Y-m-d')) {
|
|
|
|
$res = $api->getGoogleRank($item['api_no']);
|
|
|
|
if(!$res){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res.'-----11111111111', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$error++;
|
|
|
|
continue;
|
|
|
|
}
|
|
...
|
...
|
@@ -59,7 +60,6 @@ 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($error, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
//有小语种的
|
|
|
|
$lang_list = $api->getLangList();
|
|
|
|
if(!empty($lang_list[$item['api_no']])){
|
|
...
|
...
|
@@ -70,7 +70,6 @@ class RankData extends BaseCommands |
|
|
|
$error++;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$data = [];
|
|
|
|
//不同的小语种取出来
|
|
|
|
foreach ($res as $keyword => $v){
|
...
|
...
|
|