\app\admin\behaviorApiPermission

Summary

Methods
Properties
Constants
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
checkAuth()
getAuth()
No private properties found
N/A

Methods

run()

run() : \think\response\Json

用户权限检测

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

\think\response\Json

checkAuth()

checkAuth(  $uid,   $route) : boolean

检测用户权限

Parameters

$uid
$route

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

boolean

getAuth()

getAuth(  $uid) : array

根据用户ID获取全部权限节点

Parameters

$uid

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array