From 34e0e4f8bf9bfa5f8a6951973a85e9eb51ec82b6 Mon Sep 17 00:00:00 2001 From: shangzhongyuan Date: Fri, 27 Mar 2026 14:54:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(account):=20=E7=A6=81=E7=94=A8=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E7=A6=81=E6=AD=A2=E9=99=90=E5=88=B6=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Controllers/AccountController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/YLErpWeb/Controllers/AccountController.cs b/YLErpWeb/Controllers/AccountController.cs index 587d43ce..79c0d3e6 100644 --- a/YLErpWeb/Controllers/AccountController.cs +++ b/YLErpWeb/Controllers/AccountController.cs @@ -595,6 +595,10 @@ namespace YLErp.Web.Controllers { return Content("找不到系统用户:" + userId); } + if (user.State != (int)UserState.Enabled) + { + return Content("系统用户:" + userId + "处于禁用状态"); + } user.UserToken = userToken; db.SystemUserLoginfo.Add(new SystemUserLoginfo {