From be29d2f798d42decff40b4fa7737d202233e2355 Mon Sep 17 00:00:00 2001 From: Eden Leung Date: Sat, 4 Jul 2020 03:42:01 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/admin/middleware/Permission.php | 2 +- config/jwt.php | 36 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/admin/middleware/Permission.php b/app/admin/middleware/Permission.php index e0cdc12..35dd424 100644 --- a/app/admin/middleware/Permission.php +++ b/app/admin/middleware/Permission.php @@ -33,7 +33,7 @@ public function handle($request, \Closure $next, $permission) if ($request->isOptions()) { return $next($request); } - + if (!$request->user) { return $this->handleNotLoggedIn($request); } diff --git a/config/jwt.php b/config/jwt.php index 1aeba24..4cda277 100644 --- a/config/jwt.php +++ b/config/jwt.php @@ -12,27 +12,27 @@ return [ 'default' => 'admin', - 'apps' => [ + 'apps' => [ 'admin' => [ 'token' => [ - 'uniqidKey' => 'uid', - 'signerKey' => 'RvAjzUhtJs', - 'notBefore' => 0, - 'expiresAt' => 3600, - 'refreshTTL' => 7200, - 'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256', - 'type' => 'Header', - 'refresh' => 50001, - 'relogin' => 50002, - 'iss' => 'client.tant', - 'aud' => 'server.tant', + 'uniqidKey' => 'uid', + 'signerKey' => 'RvAjzUhtJs', + 'notBefore' => 0, + 'expiresAt' => 3600, + 'refreshTTL' => 7200, + 'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256', + 'type' => 'Header', + 'refresh' => 50001, + 'relogin' => 50002, + 'iss' => 'client.tant', + 'aud' => 'server.tant', 'automaticRenewal' => false, ], 'user' => [ - 'bind' => true, + 'bind' => true, 'model' => 'app\\common\\model\\User', - ] - ] + ], + ], ], 'manager' => [ // 缓存前缀 @@ -40,6 +40,6 @@ // 黑名单缓存名 'blacklist' => 'blacklist', // 白名单缓存名 - 'whitelist' => 'whitelist' - ] -]; \ No newline at end of file + 'whitelist' => 'whitelist', + ], +];