\app\http\middlewareAuth

Summary

Methods
Properties
Constants
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
jwtAuth()
verifyApiAuth()
$allowAccessRule
N/A

Properties

$allowAccessRule

$allowAccessRule : 

Type

Methods

handle()

handle(\think\Request  $request, \Closure  $next) 

Parameters

\think\Request $request
\Closure $next

jwtAuth()

jwtAuth(\think\Request  $request, \Closure  $next) : mixed

权限校验

Parameters

\think\Request $request
\Closure $next

Returns

mixed

verifyApiAuth()

verifyApiAuth(  $payload, \think\Request  $request) 

验证接口是否有访问权限

Parameters

$payload
\think\Request $request

Throws

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