正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论