正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -51,6 +51,7 @@ class RankData extends BaseCommands | @@ -51,6 +51,7 @@ 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); | ||
| 54 | $error++; | 55 | $error++; |
| 55 | continue; | 56 | continue; |
| 56 | } | 57 | } |
| @@ -59,7 +60,6 @@ class RankData extends BaseCommands | @@ -59,7 +60,6 @@ class RankData extends BaseCommands | ||
| 59 | 60 | ||
| 60 | $this->save_rank($item['project_id'], $res, $indexed_pages_num); | 61 | $this->save_rank($item['project_id'], $res, $indexed_pages_num); |
| 61 | } | 62 | } |
| 62 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND); | ||
| 63 | //有小语种的 | 63 | //有小语种的 |
| 64 | $lang_list = $api->getLangList(); | 64 | $lang_list = $api->getLangList(); |
| 65 | if(!empty($lang_list[$item['api_no']])){ | 65 | if(!empty($lang_list[$item['api_no']])){ |
| @@ -70,7 +70,6 @@ class RankData extends BaseCommands | @@ -70,7 +70,6 @@ class RankData extends BaseCommands | ||
| 70 | $error++; | 70 | $error++; |
| 71 | continue; | 71 | continue; |
| 72 | } | 72 | } |
| 73 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error, true) . PHP_EOL, FILE_APPEND); | ||
| 74 | $data = []; | 73 | $data = []; |
| 75 | //不同的小语种取出来 | 74 | //不同的小语种取出来 |
| 76 | foreach ($res as $keyword => $v){ | 75 | foreach ($res as $keyword => $v){ |
-
请 注册 或 登录 后发表评论