首先在本地测试curl 58 

上传到服务器上 curl 52

基本确定是curl配置问题;

一轮又一轮查下去没发现原因;后来 群里以为同仁(天问)发给我一篇文章;

连接:

http://www.ithao123.cn/content-7503534.html

结果发现:对于证书的路径理解错误了;是Windows D:wwwwwwrootmysitecacertapiclient_cert.pem这样的;而不是http://www.....cert.pem

 

出现在:WxPayPuHelper.php 215行左右;改成。

curl_setopt($ch,CURLOPT_SSLCERT, dirname(__FILE__) . '/cacert/apiclient_cert.pem');

curl_setopt($ch,CURLOPT_SSLKEY, dirname(__FILE__) . '/cacert/apiclient_key.pem');

 

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-12-31
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-01-23
  • 2022-02-15
  • 2022-01-06
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案