CreateProject/activePage.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using CreateCommon;
namespace CreateProject
{
public partial class activePage : System.Web.UI.Page
{
//定义对象实例化
CreateBll.UserListBll bll = new CreateBll.UserListBll();
CreateModel.UserListModel model = new CreateModel.UserListModel();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
userActive();
}
}
#region 用户激活操作
private void userActive()
{
//取出参数id
int userid = Convert.ToInt32(Request["user"]);
string activeCode = Request["activecode"].ToString();
//2判断id为id的记录是否存在
int number = bll.Exists(userid);
if (number > 0)
{
DateTime dtTime = DateTime.Now;
DataRow dr = bll.GetActiveCode(userid);
if (dr != null)
{
if (dtTime.AddDays(-30) > dr["addTime"].ToDateTime())
{
Response.Write("该账号已经超过三十天没有激活,已经失效!");
return;
}
//如果该用户存在取出ActiveCode字段进行比较。如果一样,把Active字段修改为true
string AC = dr["activeCode"].ToStr();
if (AC == activeCode)
{
Response.Write("激活成功!<a href='Login.aspx'>返回登录</a>");
bll.UpdateActiveState(userid);
return;
}
else
{
后面还有 16 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。