DTcms.Web.UI/DTcms.Web.UI.Page/usermessage_show.cs
(完整代码) 1KBusing DTcms.BLL;
using DTcms.Common;
using DTcms.Model;
using System;
using System.Web;
namespace DTcms.Web.UI.Page
{
public class usermessage_show : UserPage
{
protected int id;
protected DTcms.Model.user_message model = new DTcms.Model.user_message();
protected override void InitPage()
{
this.id = DTRequest.GetQueryInt("id");
DTcms.BLL.user_message bll = new DTcms.BLL.user_message();
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.accept_user_name != this.userModel.user_name && this.model.post_user_name != this.userModel.user_name)
{
HttpContext.Current.Response.Redirect(base.linkurl("error", new object[]
{
"?msg=" + Utils.UrlEncode("出错了,您所查看的并非自己的短消息!")
}));
}
else
{
bll.UpdateField(this.id, "is_read=1,read_time='" + DateTime.Now + "'");
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。