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 = [];