`
radzhang
  • 浏览: 302666 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

公众号获取access_token失败

 
阅读更多

一直报获取access_token失败,看后面的log发现 url获取数据时,调用file_get_contents()失败。

 

file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? 

 

一查原来是调用https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET是用https。但是电脑的php.ini没有把;extension=php_openssl.dll放开

。放开后就正常了。 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics