|
@@ -392,7 +392,7 @@ class RankDataLogic extends BaseLogic |
|
@@ -392,7 +392,7 @@ class RankDataLogic extends BaseLogic |
|
392
|
if (!empty($lang_list[$api_no])) {
|
392
|
if (!empty($lang_list[$api_no])) {
|
|
393
|
$model = RankData::where('project_id', $project_id)->where('lang', '<>', '')->first();
|
393
|
$model = RankData::where('project_id', $project_id)->where('lang', '<>', '')->first();
|
|
394
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
394
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
|
395
|
- $res = $api->getGoogleRank($api_no, $model->lang, 7, $force);
|
395
|
+ $res = $api->getGoogleRank($api_no, $lang_list[$api_no], 7, $force);
|
|
396
|
if (!$res) {
|
396
|
if (!$res) {
|
|
397
|
throw new \Exception("接口数据获取失败,api_no:{$api_no},lang");
|
397
|
throw new \Exception("接口数据获取失败,api_no:{$api_no},lang");
|
|
398
|
}
|
398
|
}
|