|
...
|
...
|
@@ -390,7 +390,7 @@ class RankDataLogic extends BaseLogic |
|
|
|
$api = new QuanqiusouApi();
|
|
|
|
$model = RankData::where('project_id', $project_id)->where('lang', '')->first();
|
|
|
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
|
|
|
$res = $api->getGoogleRank($api_no, '', 7, $force);
|
|
|
|
$res = $api->getGoogleRank($project_id, $api_no, '', 7, $force);
|
|
|
|
if (!$res) {
|
|
|
|
throw new \Exception("接口数据获取失败,api_no:{$api_no}");
|
|
|
|
}
|
|
...
|
...
|
@@ -416,7 +416,7 @@ class RankDataLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$model = RankData::where('project_id', $project_id)->where('lang', $lang)->first();
|
|
|
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
|
|
|
$res = $api->getGoogleRank($api_no, $lang, 7, $force);
|
|
|
|
$res = $api->getGoogleRank($project_id, $api_no, $lang, 7, $force);
|
|
|
|
if (!$res) {
|
|
|
|
throw new \Exception("接口数据获取失败,api_no:{$api_no},lang");
|
|
|
|
}
|
...
|
...
|
|