微信公众平台开发服务器与微信服务器通信时失败 获取不到值

网页提示错误信息:

curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead in \192.168.200.150WWWwxdevelopcitygamejssdk.php on line 120

在网页调试能够获取到access_token,但是通过curl却获取不到,是不是因为我们的服务的问题,ssl安全校验失败,如何解决,请大神解答
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$this->appId&secret=$this->appSecret";

阅读 10k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进