From 9b6d0eedfa5ae482a45745b54e26e20cbca97b5b Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 29 Oct 2022 11:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index d270c8c..44f7a44 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -44,7 +44,7 @@ public function handle($request, Closure $next, $guard = null) $user = $this->auth->guard($guard)->user(); if ($user->banned_at) { - return $this->forbidden('您已被封禁,原因是: ' . $user->banned_reason); + return $this->forbidden('您已被封禁,原因是: ' . $user->banned_reason ?? '一次或多次触犯了我们的规则。'); } return $next($request);