From 1075ecdf471e1c110fe3cf1640116b71d676b45e Mon Sep 17 00:00:00 2001 From: dao Date: Wed, 11 Dec 2024 17:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=8F=E6=B4=9E=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Organization/User/UserBLL.cs | 8 ++++---- .../Controllers/StuInfoFreshController.cs | 13 +++++++++++++ .../Controllers/LoginController.cs | 8 ++++++-- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs index b48007a5e..a8e151fe7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs @@ -1147,7 +1147,7 @@ namespace Learun.Application.Organization { userEntity = new UserEntity() { - LoginMsg = "账户不存在!", + LoginMsg = "密码和账户名不匹配!", LoginOk = false }; return userEntity; @@ -1157,7 +1157,7 @@ namespace Learun.Application.Organization { userEntity = new UserEntity() { - LoginMsg = "账户不存在!", + LoginMsg = "密码和账户名不匹配!", LoginOk = false }; return userEntity; @@ -1184,13 +1184,13 @@ namespace Learun.Application.Organization } else { - userEntity.LoginMsg = "密码和账户名不匹配!"; + userEntity.LoginMsg = "密码和账户名不匹配!"; } } } else { - userEntity.LoginMsg = "账户被系统锁定,请联系管理员!"; + userEntity.LoginMsg = "账户被系统锁定,请联系管理员!"; } return userEntity; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs index 6f1cb50b7..3fa6b6474 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs @@ -34,6 +34,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers private AccommodationIBLL accommodationIBLL = new AccommodationBLL(); private CdMajorIBLL cdMajorIBLL = new CdMajorBLL(); private CdDeptIBLL cdDeptIBLL = new CdDeptBLL(); + private ModuleIBLL moduleIBLL = new ModuleBLL(); #region 视图功能 @@ -322,6 +323,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetPageList(string pagination, string queryJson) { + var menu = moduleIBLL.GetModuleList(); + if (!menu.Any(x => x.F_UrlAddress == "/EducationalAdministration/StuInfoFresh/StatusView")) + { + var jData = new + { + rows = new List(), + total = 0, + page = 1, + records = 0 + }; + return Success(jData); + } Pagination paginationobj = pagination.ToObject(); var data = stuInfoFreshIBLL.GetPageList(paginationobj, queryJson); var jsonData = new diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs index 259158ef9..5bf75a17f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs @@ -527,7 +527,7 @@ namespace Learun.Application.Web.Controllers var needlockaccount = userBll.GetEntityByMobile(username); userBll.UpdateState(needlockaccount.F_UserId,0); OperatorHelper.Instance.ClearCurrentErrorNum(); - return Fail("密码错误次数过多,账户已被锁定!"); + return Fail("账户已被锁定!"); } #region 内部账户验证 @@ -1053,7 +1053,11 @@ namespace Learun.Application.Web.Controllers { return CustomerIP; } - + CustomerIP = System.Web.HttpContext.Current.Request.UserHostAddress; + if (!String.IsNullOrEmpty(CustomerIP)) + { + return CustomerIP; + } CustomerIP = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (!String.IsNullOrEmpty(CustomerIP))