正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -64,7 +64,7 @@ class RankData extends BaseCommands | @@ -64,7 +64,7 @@ class RankData extends BaseCommands | ||
| 64 | foreach ($list as $item) { | 64 | foreach ($list as $item) { |
| 65 | Log::channel('rank_data')->info('项目开始:ID' . $item['project_id'] .' - '. $item['api_no']) . ''; | 65 | Log::channel('rank_data')->info('项目开始:ID' . $item['project_id'] .' - '. $item['api_no']) . ''; |
| 66 | try { | 66 | try { |
| 67 | - (new RankDataLogic())->syncRankData($item['api_no'], $site_res, true); | 67 | + (new RankDataLogic())->syncRankData($item['api_no'], $site_res); |
| 68 | } catch (\Exception $e) { | 68 | } catch (\Exception $e) { |
| 69 | Log::channel('rank_data')->error('RankData:失败 ' . $item['api_no'] . $e->getMessage()); | 69 | Log::channel('rank_data')->error('RankData:失败 ' . $item['api_no'] . $e->getMessage()); |
| 70 | $error++; | 70 | $error++; |
| @@ -390,7 +390,7 @@ class RankDataLogic extends BaseLogic | @@ -390,7 +390,7 @@ class RankDataLogic extends BaseLogic | ||
| 390 | $api = new QuanqiusouApi(); | 390 | $api = new QuanqiusouApi(); |
| 391 | $model = RankData::where('project_id', $project_id)->where('lang', '')->first(); | 391 | $model = RankData::where('project_id', $project_id)->where('lang', '')->first(); |
| 392 | if (!$model || $model->updated_date != date('Y-m-d') || $force) { | 392 | if (!$model || $model->updated_date != date('Y-m-d') || $force) { |
| 393 | - $res = $api->getGoogleRank($api_no, '', 7, $force); | 393 | + $res = $api->getGoogleRank($api_no, '', 7, true); |
| 394 | if (!$res) { | 394 | if (!$res) { |
| 395 | throw new \Exception("接口数据获取失败,api_no:{$api_no}"); | 395 | throw new \Exception("接口数据获取失败,api_no:{$api_no}"); |
| 396 | } | 396 | } |
-
请 注册 或 登录 后发表评论