本地调试easywechat报错cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决方案

public function getClient()
{
   if (!($this->client instanceof HttpClient)) {
       $this->client = new HttpClient(['verify'      => false]);
   }

   return $this->client;
}

将vendor/overtrue/wechat/src/Core/Http.php文件的getClient方法改成上图所示即可

发表回复

您的电子邮箱地址不会被公开。