增加 原因
This commit is contained in:
parent
9f5909e30e
commit
9b6d0eedfa
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user