Medical/Mobile/js/register.ashx.cs
(完整代码) 1KBusing System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication.Mobile.js
{
/// <summary>
/// register 的摘要说明
/// </summary>
public class register : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (context.Request["loginname"] != null && context.Request["password"] != null)
{
if (DBUtility.DbHelperSQL.Exists("select * from GZXX_U_UserTable where LoginName = '" + context.Request["loginname"] + "'"))
{
context.Response.Write("注册失败,该账号已经被注册!");
}
else
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
Hashtable ht = new Hashtable();
ht.Add("ChannelID", 1000054);
ht.Add("ClassID", 96);
ht.Add("Title", context.Request["title"]);
ht.Add("Inputer", context.Request["loginname"]);
ht.Add("DepartID", 1);
ht.Add("Pic", context.Request["pic"]);
ht.Add("LoginName", context.Request["loginname"]);
ht.Add("PassWord", WebApplication.Admin.Tools.Base64.Base64Code(context.Request["password"]));
if (bll.AddContent("GZXX_U_UserTable", ht) > 0)
{
context.Response.Write("OK");
}
else
{
context.Response.Write("注册失败,请稍后重试!");
}
}
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
