diff --git a/wchat/qq/Redhat.php b/wchat/qq/Redhat.php index 4a58010..79db6a4 100644 --- a/wchat/qq/Redhat.php +++ b/wchat/qq/Redhat.php @@ -433,6 +433,8 @@ class Redhat extends SmallProgram { $client = new Client('api.qpay.qq.com', 443, true); $client->withHeader(['Content-Type' => 'application/json']); + $client->withSslKeyFile($this->config->getSslKey()); + $client->withSslCertFile($this->config->getSslCert()); $client->post($this->sendUrl, $this->generate()); $client->close(); if (!in_array($client->getStatusCode(), [101, 200, 201])) {