\App\Http\Controllers\OauthOAuthController

Class OauthController

Summary

Methods
Properties
Constants
__construct()
getState()
checkState()
json()
error()
__getAccessToken()
$state
No constants found
No protected methods found
$curl
N/A
No private methods found
No private properties found
N/A

Properties

$state

$state : string

Type

string

$curl

$curl : \Curl\Curl

Type

\Curl\Curl

Methods

__construct()

__construct() 

getState()

getState(integer  $length = 32) : string

TODO::获取状态值

Parameters

integer $length

Returns

string

checkState()

checkState(  $storeState,   $state) : boolean

TODO::校验标识是否正确

Parameters

$storeState
$state

Returns

boolean

json()

json(  $data) : mixed

TODO::数据转换成数组格式

Parameters

$data

Returns

mixed

error()

error(  $code,   $message) : array

TODO::获取错误信息

Parameters

$code
$message

Returns

array

__getAccessToken()

__getAccessToken(  $data) : array

Parameters

$data

Returns

array