@ -49,7 +49,7 @@ class Controller extends BaseController
$this->checkClient();
$user = $this->getLoginUser();
if ($user) {
if ($user->user_type == 0) {
if ($user->user_type == 0 || $user->status == 0) {
throwError('很抱歉,您没有权限进入系统');
}
@ -361,9 +361,6 @@ class User extends Controller
$params = $this->request->param();
$user_id = $params['user_id'] ?? 0;
unset($params['user_id']);
if (isset($params['status']) && $params['status']) {
$params['user_type'] = 0;
UserModel::where('user_id', $user_id)->update($params);
return $this->renderSuccess('ok');