使用curl進行微信支付 支付寶支付等相關安全性較高URL會提示如下錯誤
SSL rtificate problem: unable to get local issuer certificate
https://download.csdn.net/download/qq_36999656/10341133
點擊下載然後去 放到一個目錄下 例如: "D:\wamp\php\ext\cacert.pem";
修改php.ini
找到 CURL模塊 把後兩行的最前面的分號去掉
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
absolute path.
curl.cainfo ="D:\wamp\php\ext\cacert.pem" #改成自己的物理路徑
重啓服務器 就ok了