EasyShop/ashx/AddUserInfo.ashx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using OpSql;
using System.Data.SqlClient;
using MyModels;
using BLL;
namespace EasyShop.ashx
{
/// <summary>
/// AddUserInfo 的摘要说明
/// </summary>
public class AddUserInfo : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string result = "NO";
//roleid,username, loginname, password
string roleid = context.Request.Params["roleid"].ToString();
string username = context.Request.Params["username"].ToString();
string loginname = context.Request.Params["loginname"].ToString();
string password = context.Request.Params["password"].ToString();
TB_MC_Admin tma = new TB_MC_Admin();
tma.Id = tma.getMaxID() + 1;
tma.Roleid = int.Parse(roleid);
tma.Userid =loginname;//登录名
tma.UserName = username;
tma.UserState = 1;
tma.UserPwd = Util.EncryptPassword(password, "md5");
//if (tma.Exists())
//{
// result = "KN";
//}
//else
//{
//}
if (!string.IsNullOrEmpty(conn.MyCookie.getCookie("UserID")))
{
tma.CreateBy = conn.MyCookie.getCookie("UserID");
}
else
{
tma.CreateBy = "";
}
tma.CreateDate = DateTime.Now;
int k = tma.Add();
if (k > 0)
{
result = "OK";
}
context.Response.Write(result);
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。