微信支付-退款之CURL 52

首先在本地测试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');

 

posted @ 2015-08-27 15:26  鱼尾纹  阅读(1057)  评论(0编辑  收藏  举报