From c2f1037ebd9ed1b2261bcc7525f33051c2d7508d Mon Sep 17 00:00:00 2001 From: Devil Date: Mon, 26 Jul 2021 22:11:02 +0800 Subject: [PATCH] =?UTF-8?q?curl=E6=96=B9=E6=B3=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/common.php b/app/common.php index 2ef41f6ee..8ca43d0cf 100755 --- a/app/common.php +++ b/app/common.php @@ -1959,6 +1959,7 @@ function CurlGet($url, $timeout = 10) curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch);