|
@@ -27,6 +27,7 @@ class KefuAuthTokenMiddleware implements MiddlewareInterface
|
|
|
/**
|
|
/**
|
|
|
* @param Request $request
|
|
* @param Request $request
|
|
|
* @param \Closure $next
|
|
* @param \Closure $next
|
|
|
|
|
+ * @return mixed
|
|
|
* @throws \Psr\SimpleCache\InvalidArgumentException
|
|
* @throws \Psr\SimpleCache\InvalidArgumentException
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\DbException
|
|
@@ -34,7 +35,6 @@ class KefuAuthTokenMiddleware implements MiddlewareInterface
|
|
|
*/
|
|
*/
|
|
|
public function handle(Request $request, \Closure $next)
|
|
public function handle(Request $request, \Closure $next)
|
|
|
{
|
|
{
|
|
|
- $authInfo = null;
|
|
|
|
|
$token = trim(ltrim($request->header(Config::get('cookie.token_name', 'Authori-zation')), 'Bearer'));
|
|
$token = trim(ltrim($request->header(Config::get('cookie.token_name', 'Authori-zation')), 'Bearer'));
|
|
|
/** @var LoginServices $services */
|
|
/** @var LoginServices $services */
|
|
|
$services = app()->make(LoginServices::class);
|
|
$services = app()->make(LoginServices::class);
|