...
|
...
|
@@ -522,6 +522,10 @@ class WxPayApi |
|
|
private static function postXmlCurl($xml, $url, $useCert = false, $second = 30)
|
|
|
{
|
|
|
$ch = curl_init();
|
|
|
//设置curl默认访问为IPv4
|
|
|
if (defined('CURLOPT_IPRESOLVE') && defined('CURL_IPRESOLVE_V4')) {
|
|
|
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
|
|
}
|
|
|
//设置超时
|
|
|
curl_setopt($ch, CURLOPT_TIMEOUT, $second);
|
|
|
|
...
|
...
|
|