diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs index 8673ef2c4..f306f1d86 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs @@ -424,12 +424,17 @@ namespace Learun.Application.Web.Controllers [HttpGet] public ActionResult Index() { - //授权验证 - var lc = LicenseChecker.CheckLicense(); - if (!lc.Result) + //判断当前ip是否是123服务器,如果是123服务器,跳过授权验证 + if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16") { - return Content(""); + //授权验证 + var lc = LicenseChecker.CheckLicense(); + if (!lc.Result) + { + return Content(""); + } } + //return View("AdminTop"); string learn_UItheme = WebHelper.GetCookie("Learn_ADMS_V6.1_UItheme"); 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 ca2700b51..1f00e1e50 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs @@ -177,11 +177,15 @@ namespace Learun.Application.Web.Controllers [HttpGet] public ActionResult Index() { - //授权验证 - var lc = LicenseChecker.CheckLicense(); - if (!lc.Result) + //判断当前ip是否是123服务器,如果是123服务器,跳过授权验证 + if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16") { - return Content(""); + //授权验证 + var lc = LicenseChecker.CheckLicense(); + if (!lc.Result) + { + return Content(""); + } } //获取错误次数 ViewBag.errornum = OperatorHelper.Instance.GetCurrentErrorNum(); @@ -576,16 +580,16 @@ namespace Learun.Application.Web.Controllers { if (userEntity.F_ModifyPwdDate.HasValue) { - if ((DateTime.Now-userEntity.F_ModifyPwdDate.Value).Days>30) + if ((DateTime.Now - userEntity.F_ModifyPwdDate.Value).Days > 30) { return Success(new { pwdtip = true }); } } else { - if (userEntity.F_CreateDate.HasValue && (DateTime.Now-userEntity.F_CreateDate.Value).Days>30) + if (userEntity.F_CreateDate.HasValue && (DateTime.Now - userEntity.F_CreateDate.Value).Days > 30) { - return Success(new { pwdtip=true }); + return Success(new { pwdtip = true }); } } }