增加 原因

This commit is contained in:
iVampireSP.com 2022-10-29 11:12:25 +08:00
parent 9f5909e30e
commit 9b6d0eedfa
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -44,7 +44,7 @@ public function handle($request, Closure $next, $guard = null)
$user = $this->auth->guard($guard)->user(); $user = $this->auth->guard($guard)->user();
if ($user->banned_at) { if ($user->banned_at) {
return $this->forbidden('您已被封禁,原因是: ' . $user->banned_reason); return $this->forbidden('您已被封禁,原因是: ' . $user->banned_reason ?? '一次或多次触犯了我们的规则。');
} }
return $next($request); return $next($request);