DTcms.Web.UI/DTcms.Web.UI.Page/useraddress_edit.cs
(完整代码) 1KBusing DTcms.BLL;
using DTcms.Common;
using DTcms.Model;
using System;
using System.Web;
namespace DTcms.Web.UI.Page
{
public class useraddress_edit : UserPage
{
protected string action;
protected int id;
protected DTcms.Model.user_addr_book model = new DTcms.Model.user_addr_book();
protected override void InitPage()
{
this.action = DTRequest.GetQueryString("action");
this.id = DTRequest.GetQueryInt("id");
if (this.action.ToLower() == DTEnums.ActionEnum.Edit.ToString().ToLower())
{
DTcms.BLL.user_addr_book bll = new DTcms.BLL.user_addr_book();
if (!bll.Exists(this.id))
{
HttpContext.Current.Response.Redirect(base.linkurl("error", new object[]
{
"?msg=" + Utils.UrlEncode("出错了,您要浏览的页面不存在或已删除!")
}));
}
else
{
this.model = bll.GetModel(this.id);
if (this.model.user_id != this.userModel.id)
{
HttpContext.Current.Response.Redirect(base.linkurl("error", new object[]
{
"error.aspx?msg=" + Utils.UrlEncode("出错了,您所要修改的并非自己的地址!")
}));
}
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。