TP6 + Swoole踩坑

in 默认分类ThinkphpPHP with 0 comment

1、微信支付等报错 cURL error 1014: SSL verify failed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

主要由于本地Ca证书路径配错或丢了导致的,先输出 print_r(openssl_get_cert_locations());看一下default_cert_file,看看证书是不是在,不在的话就从http://curl.haxx.se/ca/cacert.pem下载证书文件到该路径就可以了

2、websocket

Responses