作者 lyh

gx

... ... @@ -51,7 +51,6 @@ 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;
}
... ...
... ... @@ -103,6 +103,7 @@ class QuanqiusouApi
Cache::put($key, $res, 24 * 3600);
}
} catch (\Exception | GuzzleException $e) {
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res.'获取谷歌排名数据失败', true) . PHP_EOL, FILE_APPEND);
errorLog('获取谷歌排名数据失败', $api_no, $e);
return false;
}
... ...