正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -49,8 +49,7 @@ class RankData extends BaseCommands | @@ -49,8 +49,7 @@ class RankData extends BaseCommands | ||
| 49 | } | 49 | } |
| 50 | foreach ($list as $item){ | 50 | foreach ($list as $item){ |
| 51 | $model = GoogleRankModel::where('project_id', $item['project_id'])->where('lang', '')->first(); | 51 | $model = GoogleRankModel::where('project_id', $item['project_id'])->where('lang', '')->first(); |
| 52 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('11111111111111-进入', true) . PHP_EOL, FILE_APPEND); | ||
| 53 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('11111111111111-进入'.json_encode($model), true) . PHP_EOL, FILE_APPEND); | 52 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export('2222'.$model->updated_date, true) . PHP_EOL, FILE_APPEND); |
| 54 | if (!$model || $model->updated_date != date('Y-m-d')) { | 53 | if (!$model || $model->updated_date != date('Y-m-d')) { |
| 55 | $res = $api->getGoogleRank($item['api_no']); | 54 | $res = $api->getGoogleRank($item['api_no']); |
| 56 | if(!$res){ | 55 | if(!$res){ |
-
请 注册 或 登录 后发表评论