作者 赵彬吉

update

@@ -300,15 +300,15 @@ class SyncSubmitTaskService @@ -300,15 +300,15 @@ class SyncSubmitTaskService
300 return ''; 300 return '';
301 } 301 }
302 302
303 - $client = new \GuzzleHttp\Client();  
304 - $res = $client->request('GET', "http://ip.globalso.com?ip=".$ip, [  
305 - 'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号  
306 - ]);  
307 - if($res->getStatusCode() == 200){  
308 - return $res->getBody()->getContents();  
309 - }else{  
310 - return '';  
311 - } 303 +// $client = new \GuzzleHttp\Client();
  304 +// $res = $client->request('GET', "http://ip.globalso.com?ip=".$ip, [
  305 +// 'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号
  306 +// ]);
  307 +// if($res->getStatusCode() == 200){
  308 +// return $res->getBody()->getContents();
  309 +// }else{
  310 +// return '';
  311 +// }
312 312
313 $res = Http::withoutVerifying()->get('http://ip.globalso.com', ['ip' => $ip]); 313 $res = Http::withoutVerifying()->get('http://ip.globalso.com', ['ip' => $ip]);
314 if($res->status() == 200){ 314 if($res->status() == 200){