|
...
|
...
|
@@ -371,7 +371,7 @@ class RankDataLogic extends BaseLogic |
|
|
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
|
|
|
$res = $api->getGoogleRank($api_no, 0, 7, $force);
|
|
|
|
if (!$res) {
|
|
|
|
throw new \Exception('接口数据获取失败');
|
|
|
|
throw new \Exception("接口数据获取失败,api_no:{$api_no}");
|
|
|
|
}
|
|
|
|
//收录数
|
|
|
|
$indexed_pages_num = $site_res[$api_no] ?? 0;
|
|
...
|
...
|
@@ -384,7 +384,7 @@ class RankDataLogic extends BaseLogic |
|
|
|
if (!$model || $model->updated_date != date('Y-m-d') || $force) {
|
|
|
|
$res = $api->getGoogleRank($api_no, 1, 7, $force);
|
|
|
|
if (!$res) {
|
|
|
|
throw new \Exception('接口数据获取失败');
|
|
|
|
throw new \Exception("接口数据获取失败,api_no:{$api_no},lang");
|
|
|
|
}
|
|
|
|
$data = [];
|
|
|
|
//不同的小语种取出来
|
...
|
...
|
|