From d604d5f46a87cd7d37b8a62966cac2f7b97713fb Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 05:56:34 +0800 Subject: [PATCH] 1 --- src/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl.php b/src/Curl.php index 10b9049..216e3fd 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -75,7 +75,7 @@ class Curl extends ClientAbstracts private function curlHandlerSslSet(): void { curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, 1); - curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, $this->getHost()); + 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()); }