注释修改

This commit is contained in:
thinkphp
2015-12-10 18:31:30 +08:00
parent ffdf06d36d
commit 0a1cc5b73a
25 changed files with 113 additions and 113 deletions

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class Baidu extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 百度调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class Diandian extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 点点网调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -44,7 +44,7 @@ class Douban extends Driver
{
/* 豆瓣调用公共参数 */
$params = [];
$header = array("Authorization: Bearer {$this->token['access_token']}");
$header = ["Authorization: Bearer {$this->token['access_token']}"];
$data = $this->http($this->url($api), $this->param($params, $param), $method, $header);
return json_decode($data, true);
}

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -44,7 +44,7 @@ class Github extends Driver
{
/* Github 调用公共参数 */
$params = [];
$header = array("Authorization: bearer {$this->token['access_token']}");
$header = ["Authorization: bearer {$this->token['access_token']}"];
$data = $this->http($this->url($api), $this->param($params, $param), $method, $header);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -50,7 +50,7 @@ class Google extends Driver
{
/* Google 调用公共参数 */
$params = [];
$header = array("Authorization: Bearer {$this->token['access_token']}");
$header = ["Authorization: Bearer {$this->token['access_token']}"];
$data = $this->http($this->url($api), $this->param($params, $param), $method, $header);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class Kaixin extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 开心网调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -49,9 +49,9 @@ class Msn extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* MSN 调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -49,12 +49,12 @@ class Qq extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 腾讯QQ调用公共参数 */
$params = array(
$params = [
'oauth_consumer_key' => $this->AppKey,
'access_token' => $this->token['access_token'],
'openid' => $this->openid(),
'format' => 'json',
);
];
$data = $this->http($this->url($api), $this->param($params, $param), $method);
return json_decode($data, true);
@@ -87,7 +87,7 @@ class Qq extends Driver
}
if ($data['access_token']) {
$data = $this->http($this->url('oauth2.0/me'), array('access_token' => $data['access_token']));
$data = $this->http($this->url('oauth2.0/me'), ['access_token' => $data['access_token']]);
$data = json_decode(trim(substr($data, 9), " );\n"), true);
if (isset($data['openid'])) {
return $data['openid'];

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,12 +43,12 @@ class Renren extends Driver
public function call($api, $param = '', $method = 'POST')
{
/* 人人网调用公共参数 */
$params = array(
$params = [
'method' => $api,
'access_token' => $this->token['access_token'],
'v' => '1.0',
'format' => 'json',
);
];
$data = $this->http($this->url(''), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class Sina extends Driver
public function call($api, $param = '', $method = 'GET', $multi = false)
{
/* 新浪微博调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method, $multi);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class Sohu extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 搜狐调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class T163 extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 新浪微博调用公共参数 */
$params = array(
$params = [
'oauth_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,12 +43,12 @@ class Taobao extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 淘宝网调用公共参数 */
$params = array(
$params = [
'method' => $api,
'access_token' => $this->token['access_token'],
'format' => 'json',
'v' => '2.0',
);
];
$data = $this->http($this->url(''), $this->param($params, $param), $method);
return json_decode($data, true);
}

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,7 +43,7 @@ class Tencent extends Driver
public function call($api, $param = '', $method = 'GET', $multi = false)
{
/* 腾讯微博调用公共参数 */
$params = array(
$params = [
'oauth_consumer_key' => $this->AppKey,
'access_token' => $this->token['access_token'],
'openid' => $this->openid(),
@@ -51,7 +51,7 @@ class Tencent extends Driver
'oauth_version' => '2.a',
'scope' => 'all',
'format' => 'json',
);
];
$data = $this->http($this->url($api), $this->param($params, $param), $method, $multi);
return json_decode($data, true);

View File

@@ -1,8 +1,8 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
@@ -43,9 +43,9 @@ class X360 extends Driver
public function call($api, $param = '', $method = 'GET')
{
/* 360开放平台调用公共参数 */
$params = array(
$params = [
'access_token' => $this->token['access_token'],
);
];
$data = $this->http($this->url($api, '.json'), $this->param($params, $param), $method);
return json_decode($data, true);