积分优化

This commit is contained in:
2026-10-17 10:34:45 +08:00
parent 29b15d4b54
commit bbd0e6d392
27 changed files with 1054 additions and 335 deletions
+13 -5
View File
@@ -30,18 +30,26 @@ namespace FineUIPro.Web
string password = string.Empty;
if (HttpContext.Current != null && HttpContext.Current.Request != null)
{
if (Request.Cookies["u"] != null)
//if (Request.Cookies["u"] != null)
//{
// account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
//}
//if (Request.Cookies["p"] != null)
//{
// password = Request.Cookies["p"].Value;
//}
if (HttpContext.Current.Request.Cookies["u"] != null)
{
account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
account = HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["u"].Value);
}
if (Request.Cookies["p"] != null)
if (HttpContext.Current.Request.Cookies["p"] != null)
{
password = Request.Cookies["p"].Value;
password = HttpContext.Current.Request.Cookies["p"].Value;
}
}
Session["CurrUser"] = BLL.Funs.DB.Sys_User.FirstOrDefault(x => x.Account == account && x.Password == Funs.EncryptionPassword(password));
}
//var ssss = (Model.Sys_User)Session["CurrUser"];
return (Model.Sys_User)Session["CurrUser"];
}
}