数组定义规范统一

This commit is contained in:
thinkphp
2013-04-01 11:03:19 +08:00
parent 668aca97c8
commit 6f5db51323
33 changed files with 87 additions and 87 deletions

View File

@@ -39,7 +39,7 @@ class Douban extends Driver{
*/
public function call($api, $param = '', $method = 'GET'){
/* 豆瓣调用公共参数 */
$params = array();
$params = [];
$header = array("Authorization: Bearer {$this->token['access_token']}");
$data = $this->http($this->url($api), $this->param($params, $param), $method, $header);
return json_decode($data, true);