作者 赵彬吉

update

@@ -300,6 +300,16 @@ class SyncSubmitTaskService @@ -300,6 +300,16 @@ 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 + }
  312 +
303 $res = Http::withoutVerifying()->get('http://ip.globalso.com', ['ip' => $ip]); 313 $res = Http::withoutVerifying()->get('http://ip.globalso.com', ['ip' => $ip]);
304 if($res->status() == 200){ 314 if($res->status() == 200){
305 return $res->body(); 315 return $res->body();