正在显示
2 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论