问下我有个内网windows服务器,用的是phpstudy,然后请求微信小程序登录,报错了?
我用curl 请求微信token
我环境是内网里面的windows,用的phpstudy装的php环境,完事后电脑能上外网,也能ping通api.weixin.qq.com,不知为啥curl报错了
报错:
weixin unable to get local issuer certificate
Could not resolve host: api.weixin.qq.com; Name or service not known (see curl.haxx.se/libcurl/c/libcurl-err...)
感觉像是网络存在中间人代理,或者你的系统较老,没有内置 DigiCert 的 CA 证书,导致
api.weixin.qq.com
的证书不被信任! 然后看到官方文档中有提到:easywechat.com/6.x/troubleshooting...