无法获得token:SSL certificate problem: unable to get local issuer certificatebool(false)
Ta的回复 :<?php $arr['grant_type']='client_credentials'; $arr['client_id']=''; $arr['client_secret']=''; $auth_url = "https://openapi.baidu.com/oauth/2.0/token"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $auth_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $arr); $response = curl_exec($ch); if(curl_errno($ch)) { print curl_error($ch); } curl_close($ch); var_dump($response); die();