From 983a3a2cdcfadcba1407a11533efc07b6c6fe9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 23 Sep 2025 21:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=B0=81=E7=A6=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=20301?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/api/model/Login.php b/application/api/model/Login.php index ff108af..abf07a7 100644 --- a/application/api/model/Login.php +++ b/application/api/model/Login.php @@ -107,16 +107,16 @@ class Login extends Model $block = db::name('block')->where(['type_text' => $user_info['id'],'type' => 1])->find(); if ($block) { - return ['code' => 0, 'msg' => '用户已被封禁', 'data' => null]; + return ['code' => 301, 'msg' => '用户已被封禁', 'data' => null]; } $block = db::name('block')->where(['type_text' => $login_device,'type' => 2])->find(); if ($block) { - return ['code' => 0, 'msg' => '设备已被封禁', 'data' => null]; + return ['code' => 301, 'msg' => '设备已被封禁', 'data' => null]; } $ip = request()->ip(); $block = db::name('block')->where(['type_text' => $ip,'type' => 3])->find(); if ($block) { - return ['code' => 0, 'msg' => 'ip已被封禁', 'data' => null]; + return ['code' => 301, 'msg' => 'ip已被封禁', 'data' => null]; } $save_data = [];