EasyShop/PersonCenter/Member_SetPayPwd.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;
using ExeSql;
using MyModels;
using Easy.COMMON;
using BLL;
namespace EasyShop.PersonCenter
{
public partial class Member_SetPayPwd :Base_Page
{
public string jsString = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Login_UserId))
{
string reurl = Request.RawUrl.ToString();
System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
}
}
protected void Tj_Click(object sender, EventArgs e)
{
string userId = conn.MyCookie.getCookie("UserID");
TB_MC_User tmu = new TB_MC_User();
int oid = -1;
if (!int.TryParse(userId, out oid))
{
return;
}
if (!string.IsNullOrEmpty(userId))
{
tmu.Id= int.Parse(userId);
tmu.UserPwd =Util.EncryptPassword(StaticFunction.CheckSql2(txt_LoginPwd.Text),"md5");
tmu.PayPwd =Util.EncryptPassword(StaticFunction.CheckSql2(txt_PayPwd.Text),"md5");
int ck=tmu.CheckLoginInfo2();
if (ck > 0)
{
tmu.EditBy = userId;
tmu.EditDate = DateTime.Now;
int k = tmu.UpdatePayPwd();
string url = Request.UrlReferrer.ToString();
if (k > 0)
{
jsString += "dlg.Msg.Cor(\"设置成功\");setTimeout('Go(" + url + ")', 2000);";
}
else
{
//url = "/index.aspx";
jsString += "dlg.Msg.Err(\"设置失败,请稍后重试!\");setTimeout('Go(\"/index.aspx\")', 2000);";
}
}
else
{
jsString += "dlg.Msg.Err(\"登录密码错误,请稍后重试!\");";
}
后面还有 5 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。