From 9a99eb926fb56e2867a02d188e5bbd1bae039e14 Mon Sep 17 00:00:00 2001 From: devil Date: Thu, 16 Jan 2020 16:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=20curl=20=E4=BD=BF=E7=94=A8=20ivp4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/common.php b/application/common.php index 99016ea3b..c6068ddcd 100755 --- a/application/common.php +++ b/application/common.php @@ -1112,6 +1112,7 @@ function CurlPost($url, $post, $is_json = false) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HEADER, false); + curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_URL, $url); // 是否 json