作者 赵彬吉

update

... ... @@ -300,6 +300,16 @@ class SyncSubmitTaskService
return '';
}
$client = new \GuzzleHttp\Client();
$res = $client->request('GET', "http://ip.globalso.com?ip=".$ip, [
'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号
]);
if($res->getStatusCode() == 200){
return $res->getBody()->getContents();
}else{
return '';
}
$res = Http::withoutVerifying()->get('http://ip.globalso.com', ['ip' => $ip]);
if($res->status() == 200){
return $res->body();
... ...