Example #1
0
 /// <summary>
 /// 添加系统消息
 /// </summary>
 /// <param name="userID"></param>
 /// <param name="content"></param>
 public void AddSysMsg(int userID,string content)
 {
     UserMsg model = new UserMsg();
     model.UserID = userID;
     model.Content = "[color=red]系统提示:[/color]\n" + content;
     model.SendUserID = 1000;
     model.AddTime = DateTime.Now;
     model.Status = 0;
     Add(model);
 }
Example #2
0
 //public void AddReInfo(int userID, string username, string title,int bbsMainID, int reNum)
 //{
 //    string content = "[color=red]系统提示:[/color]<br />" +
 //        "用户“[b]" + MyText.SafeStr(username) + "[/b]”在“[b]" + MyText.SafeStr(title) + "[/b]”的帖子中的“[b]" + reNum.ToString() + "楼[/b]”回复了您。<br />" +
 //        "查看链接:[url]http://www.woxx8.com/bbs/"+ bbsMainID.ToString() +".html[/url]";
 //    UserMsg model = new UserMsg();
 //    model.UserID = userID;
 //    model.SendUserID = 1000;
 //    model.Content = content;
 //    model.AddTime = DateTime.Now;
 //    model.Status = 0;
 //    Add(model);
 //}
 public void Add(int userID, int sendUserID, string content)
 {
     UserMsg model = new UserMsg();
     model.UserID = sendUserID;
     model.SendUserID = userID;
     model.Content = MyText.ShowStr(content);
     model.AddTime = DateTime.Now;
     model.Status = 0;
     Add(model);
 }