Web/Personal/getInfo.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Web.Class;
namespace Web.Personal
{
/// <summary>
/// getInfo 的摘要说明
/// </summary>
public class getInfo : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
#region 验证用户
if (context.Request.Form["codename"] == "ValidateUser")
{
if (Session.GetLoginType() == 1)
{
Model.tbHotel modelHotel = new Model.tbHotel();
BLL.tbHotel bllHotel = new BLL.tbHotel();
modelHotel.H_Account = Session.GetHAccount();
modelHotel.H_Pwd = Common.StrHelper.EncryptPassword(context.Request.Form["oldpwd"], "MD5");
if (bllHotel.GetList(modelHotel).Count > 0)
{
context.Response.Write("{\"status\":\"1\",\"msg\":\"\"}");
}
else
{
context.Response.Write("{\"status\":\"0\",\"msg\":\"\"}");
}
}
else if (Session.GetLoginType() == 2)
{
Model.tbUser modelUser = new Model.tbUser();
BLL.tbUser bllUser = new BLL.tbUser();
modelUser.U_Account = Session.GetUAccount();
modelUser.U_Pwd = Common.StrHelper.EncryptPassword(context.Request.Form["oldpwd"], "MD5");
if (bllUser.GetList(modelUser).Count > 0)
{
context.Response.Write("{\"status\":\"1\",\"msg\":\"\"}");
}
else
{
context.Response.Write("{\"status\":\"0\",\"msg\":\"\"}");
}
}
}
// .Replace("\r\n","")
#endregion
}
public bool IsReusable
{
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。