|
...
|
...
|
@@ -300,15 +300,15 @@ 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 '';
|
|
|
|
}
|
|
|
|
// $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){
|
...
|
...
|
|