Web/Tools/MemberCenterAction.ashx.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.SessionState;
using System.Data;
using Common;
using System.Xml;
namespace Web.Tools
{
/// <summary>
/// $codebehindclassname$ 的摘要说明
/// </summary>
public class MemberCenterAction : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
string action = context.Request.Params["action"];
//context.Response.Write(password);如果使用加密,则写入数据库要加密后的字段,然后登陆的时候就用加密后的字符串匹配
//此处连接数据库查看是否有此用户,此处为了方便起见,直接判断
BLL.Member bll = new BLL.Member();
Model.Member model = new Model.Member();
if (action == "checkphone")//发送手机手机验证码
{
string phone = context.Request["ph"].ToString();
string phonecode=Common.Utils.GetPhoneCode(6);
Common.Utils.WriteCookie("Phone", "Shop", Common.DESEncrypt.Encrypt(phone));
HttpContext.Current.Session["PhoneCode"]=phonecode;
int id = int.Parse(HttpContext.Current.Session["MemberLogin_Id"].ToString());
model = bll.GetModel(id);
if (model.IsMobile == 1)
{
context.Response.Write("0");
}
else
{
string ret = UbuyServer.Server.httpget(UbuyServer.Server.SendPhoneCode(phone, phonecode));
XmlDocument doc = new XmlDocument();
doc.LoadXml(ret);
XmlNode xn = doc.SelectSingleNode("response");
XmlNodeList xnl = xn.ChildNodes;
string code = xnl.Item(0).InnerText;
if (UbuyServer.Server.Code(code))
{
context.Response.Write("1");
}
else
{
context.Response.Write("2");
}
}
}
else if (action == "checkphonecode")
{
//手机认证
string phone = context.Request["phonecode"].ToString();
if (phone.Trim() == HttpContext.Current.Session["PhoneCode"].ToString().Trim())
{
后面还有 250 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。