From 62fa1dc6df7cd554fd73797737f11cbe38052576 Mon Sep 17 00:00:00 2001 From: Vince Lee Date: Wed, 27 Oct 2021 15:53:08 +0800 Subject: [PATCH] =?UTF-8?q?@1028-bugfix:=E4=BF=AE=E5=A4=8D=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8E=9F=E5=9B=A0=E4=B8=8D=E5=B1=95=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/Middleware/CheckUserStatus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/Middleware/CheckUserStatus.php b/src/Http/Middleware/CheckUserStatus.php index 6c13c24..f75a5fa 100644 --- a/src/Http/Middleware/CheckUserStatus.php +++ b/src/Http/Middleware/CheckUserStatus.php @@ -103,7 +103,8 @@ class CheckUserStatus implements MiddlewareInterface } // 被禁用的用户 if ($actor->status == User::STATUS_BAN) { - Utils::outPut(ResponseCode::USER_BAN); + $rejectReason = !empty($actor->reject_reason) ? $actor->reject_reason : ''; + Utils::outPut(ResponseCode::USER_BAN, '', ['banReason' => $rejectReason]); } // 审核中的用户 if ($actor->status == User::STATUS_MOD) { -- Gitee