作者 lyh

gx

@@ -51,7 +51,6 @@ class RankData extends BaseCommands @@ -51,7 +51,6 @@ class RankData extends BaseCommands
51 if (!$model || $model->updated_date != date('Y-m-d')) { 51 if (!$model || $model->updated_date != date('Y-m-d')) {
52 $res = $api->getGoogleRank($item['api_no']); 52 $res = $api->getGoogleRank($item['api_no']);
53 if(!$res){ 53 if(!$res){
54 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res.'-----11111111111', true) . PHP_EOL, FILE_APPEND);  
55 $error++; 54 $error++;
56 continue; 55 continue;
57 } 56 }
@@ -103,6 +103,7 @@ class QuanqiusouApi @@ -103,6 +103,7 @@ class QuanqiusouApi
103 Cache::put($key, $res, 24 * 3600); 103 Cache::put($key, $res, 24 * 3600);
104 } 104 }
105 } catch (\Exception | GuzzleException $e) { 105 } catch (\Exception | GuzzleException $e) {
  106 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res.'获取谷歌排名数据失败', true) . PHP_EOL, FILE_APPEND);
106 errorLog('获取谷歌排名数据失败', $api_no, $e); 107 errorLog('获取谷歌排名数据失败', $api_no, $e);
107 return false; 108 return false;
108 } 109 }