作者 赵彬吉

update

... ... @@ -38,7 +38,7 @@ abstract class BaseCommands extends Command
if($error){
echo 'error';
}
$error && sleep(60);
$error && sleep(10);
}while($error);
}
... ...
... ... @@ -35,7 +35,7 @@ class SemrushApi
];
try {
$res = HttpUtils::get($url, $params);
return $this->data($res)[0];
return $this->data($res)[0] ?? [];
}catch (\Exception|GuzzleException $e){
errorLog('获取站点外链数据失败', $params, $e);
return false;
... ...