一直报获取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放开
。放开后就正常了。