Exemple #1
0
        public static void Add(string title, string content, string receUser)
        {
            M_User_Notify model = new M_User_Notify();

            model.Title   = title;
            model.Content = content;
            model.AppendReceUser(receUser);
            Add(model);
        }
Exemple #2
0
 /// <summary>
 /// 添加一条新通知,Title限定60字符,内容:4000
 /// </summary>
 public static void Add(M_User_Notify model)
 {
     if (model.ReceUsers.Count < 1)
     {
         return;
     }
     if (model.ExpireTime < 1)
     {
         model.ExpireTime = 10;
     }
     model.Title   = StringHelper.SubStr(model.Title);
     model.Content = StringHelper.SubStr(model.Content, 4000);
     NotifyList.Add(model);
 }