This commit is contained in:
2021-12-11 06:31:16 +08:00
parent 8202c1861f
commit b59463c5e9
+2 -2
View File
@@ -74,8 +74,8 @@ class Curl extends ClientAbstracts
*/ */
private function curlHandlerSslSet(): void private function curlHandlerSslSet(): void
{ {
// curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER,FALSE);
// curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, 'api.mch.weixin.qq.com'); curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, 'api.mch.weixin.qq.com');
if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) {
curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile());
} }