Web/Tools/MemberSignIn.ashx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.SessionState;
using System.Data;
using Common;
namespace Web.Tools
{
/// <summary>
/// $MemberSignIn$ 的摘要说明
/// </summary>
public class MemberSignIn : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
string action = context.Request.Params["action"];
//context.Response.Write(password);如果使用加密,则写入数据库要加密后的字段,然后登陆的时候就用加密后的字符串匹配
//此处连接数据库查看是否有此用户,此处为了方便起见,直接判断
BLL.SignIn bll = new BLL.SignIn();
Model.SignIn model = new Model.SignIn();
Model.SignIn modelfz = new Model.SignIn();
BLL.Member bllmember = new BLL.Member();
if (action == "SignIn")
{
string txtContent ="";
int imgurl = 0;
int MemberId = int.Parse(System.Web.HttpContext.Current.Session["MemberLogin_Id"].ToString());
if (bll.Exists(MemberId))
{
modelfz = bll.GetModel(bll.GetMaxId(MemberId)-1);
DateTime dt = modelfz.AddTime;
DateTime newtime = DateTime.Now.Date;
TimeSpan ts = newtime.Subtract(dt);
if (ts.Days>1)
{
model.Content = txtContent;
model.Continuous = 1;
model.MemberId = MemberId;
model.SigninSum = 1;
}
else
{
model.Content = txtContent;
model.Continuous = ++modelfz.Continuous;
model.MemberId = MemberId;
model.SigninSum = ++modelfz.SigninSum;
}
}
else
{
model.Content = txtContent;
model.Continuous = 1;
model.MemberId = MemberId;
model.SigninSum = 1;
}
if (bll.Add(model)>0)
{
try
后面还有 118 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。