diff --git a/src/Curl.php b/src/Curl.php index 5cbffac..4ae4a2e 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -74,8 +74,8 @@ class Curl extends ClientAbstracts */ private function curlHandlerSslSet(): void { -// curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, 1); -// curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, 'api.mch.weixin.qq.com'); + curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER,FALSE); + curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, 'api.mch.weixin.qq.com'); if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); }