作者 lyh

gx

... ... @@ -56,7 +56,6 @@ class RankData extends BaseCommands
}
//收录数
$indexed_pages_num = $site_res[$item['api_no']] ?? 0;
$this->save_rank($item['project_id'], $res, $indexed_pages_num);
}
//有小语种的
... ... @@ -161,6 +160,7 @@ class RankData extends BaseCommands
$model->lang = $lang;
$model->data = $data;
$model->updated_date = date('Y-m-d');
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($model, true) . PHP_EOL, FILE_APPEND);
$model->save();
}
}
... ...
... ... @@ -103,7 +103,6 @@ class QuanqiusouApi
Cache::put($key, $res, 24 * 3600);
}
} catch (\Exception | GuzzleException $e) {
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('获取谷歌排名数据失败', true) . PHP_EOL, FILE_APPEND);
errorLog('获取谷歌排名数据失败', $api_no, $e);
return false;
}
... ...